which-key: add neorg hints
This commit is contained in:
parent
0aae3870d0
commit
8cd994ba57
@ -48,7 +48,6 @@ require('which-key').register {
|
|||||||
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
|
['<leader>d'] = { name = '[D]ocument', _ = 'which_key_ignore' },
|
||||||
['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' },
|
['<leader>g'] = { name = '[G]it', _ = 'which_key_ignore' },
|
||||||
['<leader>h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' },
|
['<leader>h'] = { name = 'Git [H]unk', _ = 'which_key_ignore' },
|
||||||
['<leader>n'] = { name = '[N]eorg', _ = 'which_key_ignore' },
|
|
||||||
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
|
['<leader>r'] = { name = '[R]ename', _ = 'which_key_ignore' },
|
||||||
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
|
['<leader>s'] = { name = '[S]earch', _ = 'which_key_ignore' },
|
||||||
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },
|
['<leader>t'] = { name = '[T]oggle', _ = 'which_key_ignore' },
|
||||||
|
@ -12,6 +12,13 @@ vim.api.nvim_create_autocmd({ "FileType" }, {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- document existing key chains
|
||||||
|
require('which-key').register {
|
||||||
|
['<leader>n'] = { name = '[N]eorg', _ = 'which_key_ignore' },
|
||||||
|
['<leader>m'] = { name = 'neorg [M]ode', _ = 'which_key_ignore' },
|
||||||
|
['<leader>l'] = { name = 'neorg [L]ist', _ = 'which_key_ignore' },
|
||||||
|
}
|
||||||
|
|
||||||
vim.api.nvim_set_keymap("n", "<Leader>ni", ":Neorg index<CR>",
|
vim.api.nvim_set_keymap("n", "<Leader>ni", ":Neorg index<CR>",
|
||||||
{ noremap = true, silent = true, desc = "[N]eorg [I]ndex" })
|
{ noremap = true, silent = true, desc = "[N]eorg [I]ndex" })
|
||||||
vim.api.nvim_set_keymap("n", "<Leader>nm", ":Neorg inject-metadata<CR>",
|
vim.api.nvim_set_keymap("n", "<Leader>nm", ":Neorg inject-metadata<CR>",
|
||||||
|
Loading…
Reference in New Issue
Block a user