diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-21 16:31:13 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-21 16:31:13 +0200 |
| commit | 3b9a6de3574666b9f1ab0baf7e63e9658ea865ae (patch) | |
| tree | f119e0e73b5a2518941097522018605f8ca52355 /.config/nvim/lua/custom/plugins | |
| parent | 02624d8bde783406127bb5265d2cdd9d38165a6f (diff) | |
Fixed harpoon issue, mapped from Ctrl+F<num> to <leader><num> and then
added Ctrl+1-5 in Konsole to be -> <space>1-5
Diffstat (limited to '.config/nvim/lua/custom/plugins')
| -rw-r--r-- | .config/nvim/lua/custom/plugins/harpoon.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/.config/nvim/lua/custom/plugins/harpoon.lua b/.config/nvim/lua/custom/plugins/harpoon.lua index f028c97..5627e2f 100644 --- a/.config/nvim/lua/custom/plugins/harpoon.lua +++ b/.config/nvim/lua/custom/plugins/harpoon.lua @@ -2,7 +2,7 @@ return { 'ThePrimeagen/harpoon', branch = 'harpoon2', dependencies = { 'nvim-lua/plenary.nvim' }, - keys = { '<C-e>', '<leader>a', '<C-F1>', '<C-F2>', '<C-F3>', '<C-F4>', '<C-F5>' }, + keys = { '<C-e>', '<leader>a', '<leader>1', '<leader>2', '<leader>3', '<leader>4', '<leader>5' }, config = function() local harpoon = require('harpoon') harpoon:setup() @@ -15,10 +15,9 @@ return { end) for i = 1, 9 do - local select = function() + vim.keymap.set('n', string.format('<leader>%d', i), function() harpoon:list():select(i) - end - vim.keymap.set('n', string.format('<C-F%d>', i), select) + end) end end, } |
