From d6ad8105680fe53708e1705d61a412c4a40b6b7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Sun, 10 Sep 2023 13:35:13 +0200 Subject: [PATCH] feat(nvim): add harpoon --- modules/programs/nvim/plugins/coding.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/programs/nvim/plugins/coding.nix b/modules/programs/nvim/plugins/coding.nix index 0242af5..79a94bc 100644 --- a/modules/programs/nvim/plugins/coding.nix +++ b/modules/programs/nvim/plugins/coding.nix @@ -289,5 +289,17 @@ with builtins; ''; opts = { }; } + { + plugin = harpoon; + keys = [ + { key = "ha"; cmd = "lua require('harpoon.mark').add_file()"; desc = "Add file"; } + { key = "hh"; cmd = "lua require('harpoon.ui').toggle_quick_menu()"; desc = "Harpoon"; } + { key = "h1"; cmd = "lua require('harpoon.ui').nav_file(1)"; desc = "Harpoon file 1"; } + { key = "h2"; cmd = "lua require('harpoon.ui').nav_file(2)"; desc = "Harpoon file 2"; } + { key = "h3"; cmd = "lua require('harpoon.ui').nav_file(3)"; desc = "Harpoon file 3"; } + { key = "h4"; cmd = "lua require('harpoon.ui').nav_file(4)"; desc = "Harpoon file 4"; } + ]; + opts = { }; + } ]; }