neovim: add extraPackages (#1522)
Add an option to add packages to the PATH of nvim. This may be usefull to make extra programes availible for plugins and/or for usage in :! myprogram
This commit is contained in:
parent
473d9acdad
commit
b584745506
|
@ -54,7 +54,8 @@ let
|
||||||
// optionalAttrs (cfg.plugins != [] ) {
|
// optionalAttrs (cfg.plugins != [] ) {
|
||||||
packages.home-manager.start = map (x: x.plugin or x) cfg.plugins;
|
packages.home-manager.start = map (x: x.plugin or x) cfg.plugins;
|
||||||
};
|
};
|
||||||
|
extraMakeWrapperArgs = lib.optionalString (cfg.extraPackages != [])
|
||||||
|
'' --prefix PATH : "${lib.makeBinPath cfg.extraPackages}"'';
|
||||||
in
|
in
|
||||||
|
|
||||||
{
|
{
|
||||||
|
@ -200,6 +201,13 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraPackages = mkOption {
|
||||||
|
type = with types; listOf package;
|
||||||
|
default = [ ];
|
||||||
|
example = "[ pkgs.shfmt ]";
|
||||||
|
description = "Extra packages available to nvim.";
|
||||||
|
};
|
||||||
|
|
||||||
plugins = mkOption {
|
plugins = mkOption {
|
||||||
type = with types; listOf (either package pluginWithConfigType);
|
type = with types; listOf (either package pluginWithConfigType);
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
@ -241,6 +249,7 @@ in
|
||||||
extraPythonPackages withPython
|
extraPythonPackages withPython
|
||||||
withNodeJs withRuby viAlias vimAlias;
|
withNodeJs withRuby viAlias vimAlias;
|
||||||
|
|
||||||
|
extraMakeWrapperArgs = extraMakeWrapperArgs;
|
||||||
configure = cfg.configure // moduleConfigure;
|
configure = cfg.configure // moduleConfigure;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue