From 74f2f16cf8dd291d3f68be15889910e4a5816748 Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Sun, 29 Dec 2024 14:01:24 +0530 Subject: configure leader key before loading lazy Signed-off-by: Brahmajit Das --- init.lua | 7 +++---- init_min.lua | 6 ++---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/init.lua b/init.lua index fbf4370..182e7b1 100644 --- a/init.lua +++ b/init.lua @@ -3,6 +3,9 @@ if vim.fn.executable('nvr') == 0 then vim.api.nvim_command('!pip3 install --user --break-system-packages neovim-remote') end +-- Change leader to a comma +vim.g.mapleader = ',' + local function get_hostname() local f = io.open("/etc/hostname") local hostname = f:read("*a") or "" @@ -11,10 +14,6 @@ local function get_hostname() return hostname end -require 'basics' -require 'appearance' -require 'keymaps' - -- Load plugins on devices other than RPi if get_hostname() ~= "shoggoth" then -- Bootstrap lazy.nvim diff --git a/init_min.lua b/init_min.lua index 3acba52..25299e6 100644 --- a/init_min.lua +++ b/init_min.lua @@ -1,6 +1,4 @@ -require 'basics' -require 'appearance' -require 'keymaps' -require 'utils' +-- Change leader to a comma +vim.g.mapleader = ',' vim.cmd.colorscheme "retrobox" -- cgit v1.2.3