nix-config/modules/nixvim/vim-heritage.nix
Oliver Davies 703bf836de
All checks were successful
/ check (push) Successful in 55s
Rename modules directory
2025-08-18 11:35:07 +01:00

25 lines
558 B
Nix

{ inputs, ... }:
{
flake.modules.nixvim.custom =
{ pkgs, ... }:
{
extraPlugins = [
(pkgs.vimUtils.buildVimPlugin {
src = inputs.vim-heritage;
pname = "vim-heritage";
version = "unstable";
})
];
keymaps = [
# https://github.com/jessarcher/vim-heritage/blob/574baeb0679681a710adce5110a0d8b2ae1c2637/README.md#L28-L33
{
action = ":edit %:h/<cfile><cr>";
key = "gf";
mode = "n";
options.silent = true;
}
];
};
}