From 6ddfa720cb67b98dac12f392936949e19d4819d9 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Sat, 5 Oct 2024 23:23:25 -0400 Subject: [PATCH] Added harpoon, removed tabline --- config/keys.nix | 37 +++++++++++++++++++++++++++++++++++++ config/plugins.nix | 2 ++ config/sets.nix | 12 +++++++++++- 3 files changed, 50 insertions(+), 1 deletion(-) diff --git a/config/keys.nix b/config/keys.nix index 83c28d5..96a9c14 100644 --- a/config/keys.nix +++ b/config/keys.nix @@ -167,6 +167,11 @@ icon = "󰉓"; desc = "List Workspace Folders"; } + { + __unkeyed-1 = "h"; + icon = "󱡅"; + desc = "Harpoon"; + } ]; }; }; @@ -228,6 +233,38 @@ options.desc = "Undo breakpoint"; } + # Harpoon commands + { + mode = "n"; + key = "ha"; + action = "lua require('harpoon.mark').add_file()"; + options.desc = "Add File"; + } + { + mode = "n"; + key = "hn"; + action = "lua require('harpoon.ui').nav_next()"; + options.desc = "Next File"; + } + { + mode = "n"; + key = "hp"; + action = "lua require('harpoon.ui').nav_prev()"; + options.desc = "Previous File"; + } + { + mode = "n"; + key = "hm"; + action = "Telescope harpoon marks"; + options.desc = "Telescope Menu"; + } + { + mode = "n"; + key = "hq"; + action = "lua require('harpoon.ui').toggle_quick_menu()"; + options.desc = "Quick Menu"; + } + # FZF-Lua custom commands -- I want to limit to current directory { mode = "n"; diff --git a/config/plugins.nix b/config/plugins.nix index f72e688..9169fff 100644 --- a/config/plugins.nix +++ b/config/plugins.nix @@ -7,6 +7,8 @@ ]; extraConfigLua = '' + require("telescope").load_extension('harpoon') + require("supermaven-nvim").setup({ keymaps = { accept_suggestion = "", diff --git a/config/sets.nix b/config/sets.nix index d04f4a4..1cd071b 100644 --- a/config/sets.nix +++ b/config/sets.nix @@ -1,7 +1,9 @@ { plugins = { + auto-save.enable = true; bufferline = { - enable = true; + # TODO: remove this once you are used to not having it + enable = false; settings = { options = { always_show_bufferline = false; @@ -32,6 +34,14 @@ }; }; + harpoon = { + enable = true; + saveOnToggle = true; + saveOnChange = true; + enterOnSendcmd = false; + markBranch = true; + }; + hop.enable = true; illuminate.enable = true; lazygit.enable = true;