diff options
| author | Jean-Pierre Appel <jeanpierre.appel01@gmail.com> | 2023-12-17 17:17:40 -0500 |
|---|---|---|
| committer | Jean-Pierre Appel <jeanpierre.appel01@gmail.com> | 2023-12-17 17:17:40 -0500 |
| commit | 47d61c1cb5af62cc75218661dfc7c3a0dc3378a8 (patch) | |
| tree | 906f5e4b1e6bb7b9eaea0fb45a9e7af82baff609 /nvim/lua/plugins/harpoon.lua | |
| parent | 00fa9fb23ee3de7b60f0b5a88f905f3bf14a1485 (diff) | |
made nvim keymap locations sensible, add harpoon
Keymaps are now stored in the lua/plugins/<Plugin>.lua or lua/keymap.lua
Installed harpoon v2
Diffstat (limited to 'nvim/lua/plugins/harpoon.lua')
| -rw-r--r-- | nvim/lua/plugins/harpoon.lua | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/nvim/lua/plugins/harpoon.lua b/nvim/lua/plugins/harpoon.lua new file mode 100644 index 0000000..061ca9e --- /dev/null +++ b/nvim/lua/plugins/harpoon.lua @@ -0,0 +1,46 @@ +return { + 'ThePrimeagen/harpoon', -- quick file navigator + branch = "harpoon2", + dependencies = 'nvim-lua/plenary.nvim', + config = function() + require("harpoon"):setup() + end, + keys = { + {"<leader><cr>", function() + local harpoon = require("harpoon") + harpoon.ui:toggle_quick_menu(harpoon:list()) + end, + desc = "Open Harpoon Quickmenu" + }, + {"<leader>m", function() + local harpoon = require("harpoon") + harpoon:list():append() + end, + desc = "Add file to harpoon" + }, + {"<leader>1", function() + local harpoon = require("harpoon") + harpoon:list():select(1) + end, + desc = "Navigate to the first file" + }, + {"<leader>2", function() + local harpoon = require("harpoon") + harpoon:list():select(2) + end, + desc = "Navigate to the second file" + }, + {"<leader>3", function() + local harpoon = require("harpoon") + harpoon:list():select(3) + end, + desc = "Navigate to the third file" + }, + {"<leader>4", function() + local harpoon = require("harpoon") + harpoon:list():select(4) + end, + desc = "Navigate to the fourth file" + }, + } +} |
