Add gitgutter

This commit is contained in:
Pedro Alves 2021-01-07 16:06:39 +00:00
parent 1b4f79b137
commit a0fe9e6ca4
3 changed files with 149 additions and 16 deletions

View file

@ -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 =