This commit is contained in:
parent
69014b86c6
commit
deae2b1055
3 changed files with 47 additions and 0 deletions
17
flake.lock
generated
17
flake.lock
generated
|
@ -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": {
|
||||
|
|
|
@ -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";
|
||||
|
|
25
modules2/nixvim/vim-heritage.nix
Normal file
25
modules2/nixvim/vim-heritage.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue