diff options
| author | Aotrix <[email protected]> | 2025-08-09 23:42:24 +0200 |
|---|---|---|
| committer | Aotrix <[email protected]> | 2025-08-09 23:42:24 +0200 |
| commit | b67b1c56b295e05736be5e1f7ae3e4470cf51dc5 (patch) | |
| tree | 9b108ffe73ef400f3f3dcb0f77da176ea0e73b62 /lua/aotrix | |
| parent | f1b6a202c7c50d05d76937ab570a0ab7229de0ad (diff) | |
updated harpoon
Diffstat (limited to 'lua/aotrix')
| -rw-r--r-- | lua/aotrix/plugins/harpoon.lua | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lua/aotrix/plugins/harpoon.lua b/lua/aotrix/plugins/harpoon.lua index c016b32..2065c7c 100644 --- a/lua/aotrix/plugins/harpoon.lua +++ b/lua/aotrix/plugins/harpoon.lua @@ -1,12 +1,13 @@ return { 'ThePrimeagen/harpoon', - dependencies = {'nvim-lua/plenary.nvim'}, + branch = "harpoon2", + dependencies = { 'nvim-lua/plenary.nvim' }, config = function() - vim.keymap.set("n", "<leader>a", function() require("harpoon.mark").add_file() end) - vim.keymap.set("n", "<leader>hv", function() require("harpoon.ui").toggle_quick_menu() end) - vim.keymap.set("n", "<C-t>", function() require("harpoon.ui").nav_file(1) end) - vim.keymap.set("n", "<C-h>", function() require("harpoon.ui").nav_file(2) end) - vim.keymap.set("n", "<C-m>", function() require("harpoon.ui").nav_file(3) end) - vim.keymap.set("n", "<C-l>", function() require("harpoon.ui").nav_file(4) end) + local harpoon = require("harpoon") + harpoon:setup() + vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end) + vim.keymap.set("n", "<leader>hv", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end) + vim.keymap.set("n", "<C-h>", function() harpoon:list():select(1) end) + vim.keymap.set("n", "<C-l>", function() harpoon:list():select(2) end) end } |
