mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
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 ];
|
||||
};
|
||||
|
||||
# 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 {
|
||||
pname = "fzf";
|
||||
version = fzf.version;
|
||||
@ -225,6 +228,10 @@ self: super: {
|
||||
dependencies = with super; [ ultisnips ];
|
||||
});
|
||||
|
||||
fzf-vim = super.fzf-vim.overrideAttrs(old: {
|
||||
dependencies = [ self.fzfWrapper ];
|
||||
});
|
||||
|
||||
sved = let
|
||||
# we put the script in its own derivation to benefit the magic of wrapGAppsHook
|
||||
svedbackend = stdenv.mkDerivation {
|
||||
|
@ -291,7 +291,7 @@ let
|
||||
|
||||
" tell vam about which plugins to load when:
|
||||
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, {})
|
||||
'');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user