From 42b993d7caf9223e5cd2ecd66ad5b7de59f0e903 Mon Sep 17 00:00:00 2001 From: Taken Date: Sun, 17 Mar 2024 18:44:43 +0100 Subject: [PATCH] Added harpoon --- lua/taken/plugins/harpoon.lua | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lua/taken/plugins/harpoon.lua diff --git a/lua/taken/plugins/harpoon.lua b/lua/taken/plugins/harpoon.lua new file mode 100644 index 0000000..536a185 --- /dev/null +++ b/lua/taken/plugins/harpoon.lua @@ -0,0 +1,31 @@ +--- @type LazyPluginSpec +return { + "ThePrimeagen/harpoon", + branch = "harpoon2", + dependencies = { "nvim-lua/plenary.nvim" }, + config = function() + local harpoon = require("harpoon") + + harpoon:setup() + + vim.keymap.set("n", "a", function() + harpoon:list():append() + end) + vim.keymap.set("n", "th", function() + harpoon.ui:toggle_quick_menu(harpoon:list()) + end) + + vim.keymap.set("n", "", function() + harpoon:list():select(1) + end) + vim.keymap.set("n", "", function() + harpoon:list():select(2) + end) + vim.keymap.set("n", "", function() + harpoon:list():select(3) + end) + vim.keymap.set("n", "", function() + harpoon:list():select(4) + end) + end, +}