mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-23 09:21:12 +01:00
neovim: add missing wrapper args
Add support for extraName, autowrapRuntimeDeps, waylandSupport, and withPerl options in the neovim module. These options are passed to the neovim wrapper to allow for more granular configuration. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
c764a377a0
commit
ab01ea24b2
1 changed files with 40 additions and 0 deletions
|
|
@ -155,6 +155,15 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
withPerl = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = ''
|
||||||
|
Enable perl provider. Set to `true` to
|
||||||
|
use Perl plugins.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
withRuby = mkOption {
|
withRuby = mkOption {
|
||||||
type = types.nullOr types.bool;
|
type = types.nullOr types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|
@ -224,6 +233,31 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraName = mkOption {
|
||||||
|
type = types.str;
|
||||||
|
default = "";
|
||||||
|
description = ''
|
||||||
|
Extra name appended to the wrapper package name.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
autowrapRuntimeDeps = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Whether to automatically wrap the binary with the runtime dependencies of the plugins.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
waylandSupport = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = pkgs.stdenv.isLinux;
|
||||||
|
defaultText = literalExpression "pkgs.stdenv.isLinux";
|
||||||
|
description = ''
|
||||||
|
Whether to enable Wayland clipboard support.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
extraWrapperArgs = mkOption {
|
extraWrapperArgs = mkOption {
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = [ ];
|
default = [ ];
|
||||||
|
|
@ -418,6 +452,7 @@ in
|
||||||
extraPython3Packages
|
extraPython3Packages
|
||||||
withPython3
|
withPython3
|
||||||
withRuby
|
withRuby
|
||||||
|
withPerl
|
||||||
viAlias
|
viAlias
|
||||||
vimAlias
|
vimAlias
|
||||||
;
|
;
|
||||||
|
|
@ -429,6 +464,11 @@ in
|
||||||
wrappedNeovim' = pkgs.wrapNeovimUnstable cfg.package (
|
wrappedNeovim' = pkgs.wrapNeovimUnstable cfg.package (
|
||||||
neovimConfig
|
neovimConfig
|
||||||
// {
|
// {
|
||||||
|
inherit (cfg)
|
||||||
|
extraName
|
||||||
|
autowrapRuntimeDeps
|
||||||
|
waylandSupport
|
||||||
|
;
|
||||||
wrapperArgs =
|
wrapperArgs =
|
||||||
(lib.escapeShellArgs (neovimConfig.wrapperArgs ++ cfg.extraWrapperArgs))
|
(lib.escapeShellArgs (neovimConfig.wrapperArgs ++ cfg.extraWrapperArgs))
|
||||||
+ " "
|
+ " "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue