mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-09 16:54:36 +02:00
Add gitgutter
This commit is contained in:
parent
1b4f79b137
commit
a0fe9e6ca4
3 changed files with 149 additions and 16 deletions
13
nixvim.nix
13
nixvim.nix
|
@ -107,6 +107,13 @@ in
|
|||
description = "Extra contents for init.vim";
|
||||
};
|
||||
|
||||
extraPackages = mkOption {
|
||||
type = types.listOf types.package;
|
||||
default = [];
|
||||
example = "[ pkgs.shfmt ]";
|
||||
description = "Extra packages to be made available to neovim";
|
||||
};
|
||||
|
||||
configure = mkOption {
|
||||
type = types.attrsOf types.anything;
|
||||
default = { };
|
||||
|
@ -176,8 +183,12 @@ in
|
|||
withRuby = false;
|
||||
};
|
||||
|
||||
extraWrapperArgs = optionalString (cfg.extraPackages != [])
|
||||
''--prefix PATH : "${makeBinPath cfg.extraPackages}"'';
|
||||
|
||||
wrappedNeovim = pkgs.wrapNeovimUnstable cfg.package (neovimConfig // {
|
||||
wrapperArgs = lib.escapeShellArgs neovimConfig.wrapperArgs;
|
||||
wrapperArgs = lib.escapeShellArgs neovimConfig.wrapperArgs + " "
|
||||
+ extraWrapperArgs;
|
||||
});
|
||||
|
||||
mappings =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue