2026 nvim config

This commit is contained in:
Will
2026-03-29 20:12:58 +01:00
commit 22e52c883a
17 changed files with 386 additions and 0 deletions

19
lua/plugins/harpoon.lua Normal file
View File

@@ -0,0 +1,19 @@
-- ~/.config/nvim/lua/plugins/harpoon.lua
return {
"ThePrimeagen/harpoon",
branch = "harpoon2", -- Use the latest Harpoon 2 branch for best support
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
require("harpoon"):setup({})
-- Map <leader>h to toggle the Harpoon quick menu
vim.keymap.set("n", "<leader>h", function()
require("harpoon").ui:toggle_quick_menu(require("harpoon"):list())
end, { desc = "Harpoon quick menu" })
-- Optionally add a key to add the current file (or directory) to Harpoon
vim.keymap.set("n", "<leader>m", function()
require("harpoon"):list():add()
end, { desc = "Mark file (Harpoon)" })
end,
}