Re-add vim-heritage
All checks were successful
/ check (push) Successful in 1m47s

This commit is contained in:
Oliver Davies 2025-08-01 01:10:58 +01:00
parent 69014b86c6
commit deae2b1055
3 changed files with 47 additions and 0 deletions

17
flake.lock generated
View file

@ -460,6 +460,7 @@
"nixvim": "nixvim",
"nur": "nur",
"standard-vim": "standard-vim",
"vim-heritage": "vim-heritage",
"vim-textobj-xmlattr": "vim-textobj-xmlattr"
}
},
@ -524,6 +525,22 @@
"type": "github"
}
},
"vim-heritage": {
"flake": false,
"locked": {
"lastModified": 1716350150,
"narHash": "sha256-YzqP2+Go8bW3heFyzzcS/91LrMkwjpZ89+ptrjjBKrM=",
"owner": "jessarcher",
"repo": "vim-heritage",
"rev": "574baeb0679681a710adce5110a0d8b2ae1c2637",
"type": "github"
},
"original": {
"owner": "jessarcher",
"repo": "vim-heritage",
"type": "github"
}
},
"vim-textobj-xmlattr": {
"flake": false,
"locked": {

View file

@ -58,6 +58,11 @@
url = "github:tjdevries/standard.vim";
};
vim-heritage = {
flake = false;
url = "github:jessarcher/vim-heritage";
};
vim-textobj-xmlattr = {
flake = false;
url = "github:whatyouhide/vim-textobj-xmlattr";

View file

@ -0,0 +1,25 @@
{ 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;
}
];
};
}