mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-31 08:05:23 +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 ? [ ],
|
extraPlugins ? [ ],
|
||||||
extraPackages ? [ ],
|
extraPackages ? [ ],
|
||||||
callSetup ? true,
|
callSetup ? true,
|
||||||
|
installPackage ? true,
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
namespace = if isColorscheme then "colorschemes" else "plugins";
|
namespace = if isColorscheme then "colorschemes" else "plugins";
|
||||||
|
@ -107,7 +108,7 @@ with lib;
|
||||||
in
|
in
|
||||||
mkIf cfg.enable (mkMerge [
|
mkIf cfg.enable (mkMerge [
|
||||||
{
|
{
|
||||||
extraPlugins = [ cfg.package ] ++ extraPlugins;
|
extraPlugins = (optional installPackage cfg.package) ++ extraPlugins;
|
||||||
inherit extraPackages;
|
inherit extraPackages;
|
||||||
|
|
||||||
${extraConfigNamespace} = optionalString callSetup ''
|
${extraConfigNamespace} = optionalString callSetup ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue