mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-28 06:35:05 +02:00
lib/neovim-plugin: allow disabling installPackage
Some plugins may wish to handle package installation themselves.
This commit is contained in:
parent
04a255ed7e
commit
843fb302eb
1 changed files with 2 additions and 1 deletions
|
@ -47,6 +47,7 @@ with lib;
|
|||
extraPlugins ? [ ],
|
||||
extraPackages ? [ ],
|
||||
callSetup ? true,
|
||||
installPackage ? true,
|
||||
}:
|
||||
let
|
||||
namespace = if isColorscheme then "colorschemes" else "plugins";
|
||||
|
@ -107,7 +108,7 @@ with lib;
|
|||
in
|
||||
mkIf cfg.enable (mkMerge [
|
||||
{
|
||||
extraPlugins = [ cfg.package ] ++ extraPlugins;
|
||||
extraPlugins = (optional installPackage cfg.package) ++ extraPlugins;
|
||||
inherit extraPackages;
|
||||
|
||||
${extraConfigNamespace} = optionalString callSetup ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue