diff --git a/lua/lsp.lua b/lua/lsp.lua index 181a7f6..44369c5 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -48,7 +48,6 @@ require('which-key').register { ['d'] = { name = '[D]ocument', _ = 'which_key_ignore' }, ['g'] = { name = '[G]it', _ = 'which_key_ignore' }, ['h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' }, - ['n'] = { name = '[N]eorg', _ = 'which_key_ignore' }, ['r'] = { name = '[R]ename', _ = 'which_key_ignore' }, ['s'] = { name = '[S]earch', _ = 'which_key_ignore' }, ['t'] = { name = '[T]oggle', _ = 'which_key_ignore' }, diff --git a/lua/neorg-configure.lua b/lua/neorg-configure.lua index 1ef818b..128dd3f 100644 --- a/lua/neorg-configure.lua +++ b/lua/neorg-configure.lua @@ -12,6 +12,13 @@ vim.api.nvim_create_autocmd({ "FileType" }, { end, }) +-- document existing key chains +require('which-key').register { + ['n'] = { name = '[N]eorg', _ = 'which_key_ignore' }, + ['m'] = { name = 'neorg [M]ode', _ = 'which_key_ignore' }, + ['l'] = { name = 'neorg [L]ist', _ = 'which_key_ignore' }, +} + vim.api.nvim_set_keymap("n", "ni", ":Neorg index", { noremap = true, silent = true, desc = "[N]eorg [I]ndex" }) vim.api.nvim_set_keymap("n", "nm", ":Neorg inject-metadata",