summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-06-26 14:34:59 -0400
committerchristianchiarulli <[email protected]>2021-06-26 14:34:59 -0400
commitd7271ab4ef213eada5c7ba443bd7f8b8e86bebab (patch)
treec2849c321bfdb14ad7d88aa7bec38c3593d54b74
parent2cf8580eb79b24a3d565aba8bb3305417811f2c8 (diff)
move whichkey config to whichkey config file
-rw-r--r--init.lua8
-rw-r--r--lua/lv-which-key/init.lua9
2 files changed, 9 insertions, 8 deletions
diff --git a/init.lua b/init.lua
index f241f264..6f0724ad 100644
--- a/init.lua
+++ b/init.lua
@@ -1,14 +1,6 @@
require('lv-globals')
vim.cmd('luafile '..CONFIG_PATH..'/lv-settings.lua')
--- Set leader
-if O.leader_key == ' ' or O.leader_key == 'space' then
- vim.api.nvim_set_keymap('n', '<Space>', '<NOP>', {noremap = true, silent = true})
- vim.g.mapleader = ' '
-else
- vim.api.nvim_set_keymap('n', O.leader_key, '<NOP>', {noremap = true, silent = true})
- vim.g.mapleader = O.leader_key
-end
require('settings')
require('lv-gitblame')
diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua
index 02401ff0..cb756e55 100644
--- a/lua/lv-which-key/init.lua
+++ b/lua/lv-which-key/init.lua
@@ -34,6 +34,15 @@ require("which-key").setup {
show_help = true -- show help message on the command line when the popup is visible
}
+-- Set leader
+if O.leader_key == ' ' or O.leader_key == 'space' then
+ vim.api.nvim_set_keymap('n', '<Space>', '<NOP>', {noremap = true, silent = true})
+ vim.g.mapleader = ' '
+else
+ vim.api.nvim_set_keymap('n', O.leader_key, '<NOP>', {noremap = true, silent = true})
+ vim.g.mapleader = O.leader_key
+end
+
local opts = {
mode = "n", -- NORMAL mode
prefix = "<leader>",