From ee31c8b2f9e9e4e3461f12bb0426fce6e7214513 Mon Sep 17 00:00:00 2001 From: Tristan Date: Wed, 31 Jul 2024 00:23:35 +0100 Subject: [PATCH] nixbook: nixvim harpoon --- lib/nixvim.nix | 21 +++++++++++++++++++++ nixos/default.nix | 3 +-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/lib/nixvim.nix b/lib/nixvim.nix index f242a04..28417fb 100644 --- a/lib/nixvim.nix +++ b/lib/nixvim.nix @@ -20,6 +20,7 @@ { key = ""; action = ''"+y''; + options.desc = "copy to clipboard"; } { key = "gl"; @@ -29,17 +30,25 @@ key = "gh"; action = "g0"; } + { + key = "q"; + action = ":bd"; + options.desc = "close buffer"; + } { key = "ggs"; action = ":Gitsigns stage_hunk"; + options.desc = "git stage hunk"; } { key = "ggb"; action = ":Gitsigns blame"; + options.desc = "show git blame"; } { key = "ggg"; action = ":LazyGit"; + options.desc = "open lazy git"; } ]; @@ -96,11 +105,23 @@ enable = true; enableTelescope = true; }; + lazygit.enable = true; which-key.enable = true; toggleterm = { enable = true; settings = {open_mapping = "[[]]";}; }; + + harpoon = { + enable = true; + keymaps = { + addFile = "ha"; + toggleQuickMenu = "hf"; + navNext = "n"; + }; + }; + + vim-css-color.enable = true; }; } diff --git a/nixos/default.nix b/nixos/default.nix index a4757ad..eb3aa89 100644 --- a/nixos/default.nix +++ b/nixos/default.nix @@ -8,7 +8,6 @@ }: let user = config.user; in { - imports = [ ./modules/podman.nix ]; @@ -124,7 +123,7 @@ in { bind-key -T copy-mode-vi v send-keys -X begin-selection bind-key -T copy-mode-vi y send-keys -X copy-selection - set -g mouse on + set -g mouse on bind -n "M-`" break-pane -d '';