Merge pull request #52685 from timokau/fzf-vim-dep
vimPlugins.fzf-vim: automatically add fzfWrapper
This commit is contained in:
commit
12a7cc0d1f
|
@ -33,6 +33,9 @@ self: super: {
|
||||||
dependencies = with super; [ vim-addon-manager ];
|
dependencies = with super; [ vim-addon-manager ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Mainly used as a dependency for fzf-vim. Wraps the fzf program as a vim
|
||||||
|
# plugin, since part of the fzf vim plugin is included in the main fzf
|
||||||
|
# program.
|
||||||
fzfWrapper = buildVimPluginFrom2Nix {
|
fzfWrapper = buildVimPluginFrom2Nix {
|
||||||
pname = "fzf";
|
pname = "fzf";
|
||||||
version = fzf.version;
|
version = fzf.version;
|
||||||
|
@ -225,6 +228,10 @@ self: super: {
|
||||||
dependencies = with super; [ ultisnips ];
|
dependencies = with super; [ ultisnips ];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
fzf-vim = super.fzf-vim.overrideAttrs(old: {
|
||||||
|
dependencies = [ self.fzfWrapper ];
|
||||||
|
});
|
||||||
|
|
||||||
sved = let
|
sved = let
|
||||||
# we put the script in its own derivation to benefit the magic of wrapGAppsHook
|
# we put the script in its own derivation to benefit the magic of wrapGAppsHook
|
||||||
svedbackend = stdenv.mkDerivation {
|
svedbackend = stdenv.mkDerivation {
|
||||||
|
|
|
@ -291,7 +291,7 @@ let
|
||||||
|
|
||||||
" tell vam about which plugins to load when:
|
" tell vam about which plugins to load when:
|
||||||
let l = []
|
let l = []
|
||||||
${lib.concatMapStrings (p: "call add(l, ${toNix p})\n") vam.pluginDictionaries}
|
${lib.concatMapStrings (p: "call add(l, {'name': '${p.pname}'})\n") plugins}
|
||||||
call vam#Scripts(l, {})
|
call vam#Scripts(l, {})
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue