From b1c8959a85e3d534123d80576445c4f0fcf2b798 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Mon, 19 Aug 2024 00:21:53 -0700 Subject: [PATCH] feat: add harpoon config for neovim --- users/youwen/common/neovim/default.nix | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/users/youwen/common/neovim/default.nix b/users/youwen/common/neovim/default.nix index 6982d31..430118a 100644 --- a/users/youwen/common/neovim/default.nix +++ b/users/youwen/common/neovim/default.nix @@ -487,6 +487,28 @@ open_for_directories = true; }; }; + harpoon = { + enable = true; + keymaps = { + addFile = "hh"; + cmdToggleQuickMenu = "hm"; + gotoTerminal = { + "1" = "ht"; + "2" = "2"; + "3" = "3"; + "4" = "4"; + }; + navFile = { + "1" = "ha"; + "2" = "hs"; + "3" = "hd"; + "4" = "hf"; + }; + navNext = "h]"; + navPrev = "h["; + toggleQuickMenu = "hk"; + }; + }; # Code formatting conform-nvim = {