summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2024-12-29 14:01:24 +0530
committerBrahmajit Das <brahmajit.xyz@gmail.com>2024-12-29 14:01:24 +0530
commit74f2f16cf8dd291d3f68be15889910e4a5816748 (patch)
tree7e5689c40adf04e227809777686f159fa189dbe0
parent15b138b013104d3df315c9e84bb6fc1f285347d6 (diff)
configure leader key before loading lazy
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r--init.lua7
-rw-r--r--init_min.lua6
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"