mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #52685 from timokau/fzf-vim-dep
vimPlugins.fzf-vim: automatically add fzfWrapper
This commit is contained in:
commit
12a7cc0d1f
2 changed files with 8 additions and 1 deletions
|
@ -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 a new issue