diff options
| author | dacctal <dacctalyt@gmail.com> | 2026-04-19 15:58:03 +0000 |
|---|---|---|
| committer | dacctal <dacctalyt@gmail.com> | 2026-04-19 15:58:03 +0000 |
| commit | 2e6e6d04b2c24a0666b015ef4f73718e2fe7c861 (patch) | |
| tree | 51ee086d8e075d0d01ce01a1855058f95ecdf74d /.config/nvim-lazy/lua/plugins/harpoon.lua | |
| parent | d19b491454c9f793d2e311dd09f70a88240dda29 (diff) | |
added vis and nvim-12+ configs
Diffstat (limited to '.config/nvim-lazy/lua/plugins/harpoon.lua')
| -rwxr-xr-x | .config/nvim-lazy/lua/plugins/harpoon.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/nvim-lazy/lua/plugins/harpoon.lua b/.config/nvim-lazy/lua/plugins/harpoon.lua new file mode 100755 index 0000000..407b7f0 --- /dev/null +++ b/.config/nvim-lazy/lua/plugins/harpoon.lua @@ -0,0 +1,26 @@ +return { + "thePrimeagen/harpoon", + enabled = true, + branch = "harpoon2", + dependencies = { + "nvim-lua/plenary.nvim", + }, + + config = function() + local harpoon = require("harpoon") + + harpoon:setup({ + global_settings = { + save_on_toggle = true, + save_on_change = true, + }, + }) + + vim.keymap.set("n", "<leader>ad", function() + harpoon:list():add() + end, { desc = "Harpoon add file" }) + vim.keymap.set("n", "<C-e>", function() + harpoon.ui:toggle_quick_menu(harpoon:list()) + end) + end, +} |
