mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Merge pull request #34703 from Ma27/make-overriding-vim-configurable-easier
vim_configurable: enable overrides
This commit is contained in:
commit
76a08d4a83
@ -325,11 +325,14 @@ rec {
|
||||
|
||||
# add a customize option to a vim derivation
|
||||
makeCustomizable = vim: vim // {
|
||||
customize = {name, vimrcConfig}: vimWithRC {
|
||||
customize = { name, vimrcConfig }: vimWithRC {
|
||||
vimExecutable = "${vim}/bin/vim";
|
||||
inherit name;
|
||||
vimrcFile = vimrcFile vimrcConfig;
|
||||
};
|
||||
|
||||
override = f: makeCustomizable (vim.override f);
|
||||
overrideAttrs = f: makeCustomizable (vim.overrideAttrs f);
|
||||
};
|
||||
|
||||
pluginnames2Nix = {name, namefiles} : vim_configurable.customize {
|
||||
|
Loading…
Reference in New Issue
Block a user