From 69a722cfd33076a4d63f1d49e52bed427453eabe Mon Sep 17 00:00:00 2001 From: dacctal <120422854+dacctal@users.noreply.github.com> Date: Thu, 5 Mar 2026 01:21:45 +0000 Subject: initial commit --- .config/nvim/lua/plugins/harpoon.lua | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 .config/nvim/lua/plugins/harpoon.lua (limited to '.config/nvim/lua/plugins/harpoon.lua') diff --git a/.config/nvim/lua/plugins/harpoon.lua b/.config/nvim/lua/plugins/harpoon.lua new file mode 100755 index 0000000..407b7f0 --- /dev/null +++ b/.config/nvim/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", "ad", function() + harpoon:list():add() + end, { desc = "Harpoon add file" }) + vim.keymap.set("n", "", function() + harpoon.ui:toggle_quick_menu(harpoon:list()) + end) + end, +} -- cgit v1.2.3