feat: nixvim refactor

This commit is contained in:
2024-06-10 17:17:13 +02:00
parent 0603bb1123
commit 93e5f439f4
40 changed files with 7806 additions and 559 deletions

View File

@@ -0,0 +1,38 @@
{ lib, config, ... }:
let
cfg = config.presets.harpoon;
in
{
options.presets.harpoon = {
enable = lib.mkEnableOption "Harpoon";
};
config = lib.mkIf cfg.enable {
keymaps = [
{
key = "hh";
mode = "n";
action = ":Telescope harpoon marks<CR>";
}
];
plugins = {
telescope.enable = true;
harpoon = {
enable = true;
enableTelescope = true;
keymaps = {
addFile = "hm";
navNext = "hn";
navPrev = "hp";
};
};
which-key.registrations.h = {
name = "Harpoon";
h = "Marks";
m = "Mark";
n = "Next";
p = "Prev";
};
};
};
}