32 lines
607 B
Nix
32 lines
607 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
inherit (lib) mkEnableOption mkIf;
|
|
cfg = config.home.devtools.nixvim.plugins.harpoon;
|
|
in {
|
|
options = {
|
|
home.devtools.nixvim.plugins.harpoon.enable = mkEnableOption "Enables Harpoon plugin for nixvim";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.nixvim.plugins.harpoon = {
|
|
enable = true;
|
|
|
|
keymapsSilent = true;
|
|
|
|
keymaps = {
|
|
addFile = "<leader>a";
|
|
toggleQuickMenu = "<C-e>";
|
|
navFile = {
|
|
"1" = "<C-j>";
|
|
"2" = "<C-k>";
|
|
"3" = "<C-l>";
|
|
"4" = "<C-m>";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|