diff options
Diffstat (limited to '.config/nvim/after')
-rw-r--r-- | .config/nvim/after/plugin/harpoon.lua | 6 | ||||
-rw-r--r-- | .config/nvim/after/plugin/whichkey.lua | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/.config/nvim/after/plugin/harpoon.lua b/.config/nvim/after/plugin/harpoon.lua new file mode 100644 index 0000000..3048fc7 --- /dev/null +++ b/.config/nvim/after/plugin/harpoon.lua @@ -0,0 +1,6 @@ +local mark = require('harpoon.mark') +local ui = require('harpoon.ui') +vim.keymap.set('n', '<M-1>', function() ui.nav_file(1) end) +vim.keymap.set('n', '<M-2>', function() ui.nav_file(2) end) +vim.keymap.set('n', '<M-3>', function() ui.nav_file(3) end) +vim.keymap.set('n', '<M-4>', function() ui.nav_file(4) end) diff --git a/.config/nvim/after/plugin/whichkey.lua b/.config/nvim/after/plugin/whichkey.lua index 05f29e9..7b74e73 100644 --- a/.config/nvim/after/plugin/whichkey.lua +++ b/.config/nvim/after/plugin/whichkey.lua @@ -1,7 +1,13 @@ - +local ma = require('harpoon.mark') +local ui = require('harpoon.ui') local ts = require('telescope.builtin') local wk = require('which-key') wk.register({ + a = { + name = 'harpoon', + a = { ma.add_file, 'add file', noremap = true, silent = true }, + e = { ui.toggle_quick_menu, 'toggle ui', noremap = true, silent = true }, + }, b = { ':Buffers<CR>', 'buffers', noremap = true, silent = true }, c = { name = '+nerd-commenter' }, d = { ':bd<CR>', 'close buffer', noremap = true, silent = true }, |