diff options
author | Joe <rrbo@proton.me> | 2023-09-22 12:06:56 +0200 |
---|---|---|
committer | Joe <rrbo@proton.me> | 2023-09-22 12:06:56 +0200 |
commit | 501e490395bcf39d220a4f62848acaad412d958d (patch) | |
tree | fda84fbf6ed515131f2e2c1e97bf0e40ac76dbbe /.config/nvim/after/plugin | |
parent | up (diff) | |
download | dotfiles-bsd-501e490395bcf39d220a4f62848acaad412d958d.tar.gz dotfiles-bsd-501e490395bcf39d220a4f62848acaad412d958d.tar.bz2 dotfiles-bsd-501e490395bcf39d220a4f62848acaad412d958d.tar.xz dotfiles-bsd-501e490395bcf39d220a4f62848acaad412d958d.tar.zst dotfiles-bsd-501e490395bcf39d220a4f62848acaad412d958d.zip |
up
Diffstat (limited to '.config/nvim/after/plugin')
-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 }, |