summaryrefslogtreecommitdiffstats
path: root/nvim-primeagen/after/plugin/harpoon.lua
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-08-13 08:44:49 +0100
committerMatthew Lemon <y@yulqen.org>2023-08-13 08:44:49 +0100
commitc1d6bc6b4fd5208c7f3df0694f7aab501943981b (patch)
treeac34ead54ba6682a5c2e0d1a1f569346c76e9c90 /nvim-primeagen/after/plugin/harpoon.lua
parent39c92fea8b9e96b2756d94b285dae8cfb015d68f (diff)
Adds primeagen neovim configuration
Diffstat (limited to '')
-rw-r--r--nvim-primeagen/after/plugin/harpoon.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/nvim-primeagen/after/plugin/harpoon.lua b/nvim-primeagen/after/plugin/harpoon.lua
new file mode 100644
index 0000000..4f57af5
--- /dev/null
+++ b/nvim-primeagen/after/plugin/harpoon.lua
@@ -0,0 +1,10 @@
+local mark = require("harpoon.mark")
+local ui = require("harpoon.ui")
+
+vim.keymap.set("n", "<leader>a", mark.add_file)
+vim.keymap.set("n", "<leader>bh", ui.toggle_quick_menu)
+
+vim.keymap.set("n", "<C-h>", function() ui.nav_file(1) end)
+vim.keymap.set("n", "<C-t>", function() ui.nav_file(2) end)
+vim.keymap.set("n", "<C-n>", function() ui.nav_file(3) end)
+vim.keymap.set("n", "<C-s>", function() ui.nav_file(4) end)