diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-06 20:07:41 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-06 20:07:41 +0300 |
| commit | 39d19909525940cc16695ad3e7fcdb5812f744ac (patch) | |
| tree | 8d5ff9c51113eb02333597be8ec240fd150cf83a /.config/nvim/lua/custom/plugins/harpoon.lua | |
| parent | 7166c238e8160fbffc219744b0fc96b96e889bd7 (diff) | |
Neovim: started rework on the conifg, changed a bunch of stuff
Diffstat (limited to '.config/nvim/lua/custom/plugins/harpoon.lua')
| -rw-r--r-- | .config/nvim/lua/custom/plugins/harpoon.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/nvim/lua/custom/plugins/harpoon.lua b/.config/nvim/lua/custom/plugins/harpoon.lua new file mode 100644 index 0000000..1352444 --- /dev/null +++ b/.config/nvim/lua/custom/plugins/harpoon.lua @@ -0,0 +1,24 @@ +return { + 'ThePrimeagen/harpoon', + branch = 'harpoon2', + dependencies = { 'nvim-lua/plenary.nvim' }, + config = function() + local harpoon = require('harpoon') + harpoon:setup() + + vim.keymap.set('n', '<leader>a', function() + harpoon:list():add() + end) + vim.keymap.set('n', '<C-e>', function() + harpoon.ui:toggle_quick_menu(harpoon:list()) + end) + + for i = 1, 9 do + local select = function() + harpoon:list():select(i) + end + vim.keymap.set('n', string.format('<C-F%d>', i), select) + vim.keymap.set('n', string.format('<leader>%d', i), select) + end + end, +} |
