aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/after/plugin
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-04-08 14:03:37 +0100
committerMatthew Lemon <y@yulqen.org>2023-04-08 14:03:37 +0100
commit0eac8747676452721b123de4b361d3d6098c8033 (patch)
tree87dac9aa85b33d3ddbeaf316a5aec3c21e1f3850 /nvim/after/plugin
parentd43a1c045f161a16fd2fe1d4b61bc5aa86910456 (diff)
Adds back harpoon.lua and reformats the packer file
Harpoon might be quite useful - it does more than it lets on.
Diffstat (limited to '')
-rw-r--r--nvim/after/plugin/harpoon.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/nvim/after/plugin/harpoon.lua b/nvim/after/plugin/harpoon.lua
new file mode 100644
index 0000000..4f57af5
--- /dev/null
+++ b/nvim/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)