nixbook: nixvim harpoon

This commit is contained in:
Tristan 2024-07-31 00:23:35 +01:00 committed by Tristan Beedell
parent 88ce520e29
commit ee31c8b2f9
2 changed files with 22 additions and 2 deletions

View file

@ -20,6 +20,7 @@
{
key = "<C-c>";
action = ''"+y'';
options.desc = "copy to clipboard";
}
{
key = "gl";
@ -29,17 +30,25 @@
key = "gh";
action = "g0";
}
{
key = "<leader>q";
action = ":bd<CR>";
options.desc = "close buffer";
}
{
key = "<leader>ggs";
action = ":Gitsigns stage_hunk<CR>";
options.desc = "git stage hunk";
}
{
key = "<leader>ggb";
action = ":Gitsigns blame<CR>";
options.desc = "show git blame";
}
{
key = "<leader>ggg";
action = ":LazyGit<CR>";
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 = "[[<c-`>]]";};
};
harpoon = {
enable = true;
keymaps = {
addFile = "<leader>ha";
toggleQuickMenu = "<leader>hf";
navNext = "<leader>n";
};
};
vim-css-color.enable = true;
};
}

View file

@ -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
'';