mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
plugins/gitgutter: use gitPackage
This commit is contained in:
parent
710f3472ec
commit
efb004a61f
1 changed files with 6 additions and 1 deletions
|
@ -16,6 +16,11 @@ in
|
||||||
|
|
||||||
package = helpers.mkPluginPackageOption "gitgutter" pkgs.vimPlugins.gitgutter;
|
package = helpers.mkPluginPackageOption "gitgutter" pkgs.vimPlugins.gitgutter;
|
||||||
|
|
||||||
|
gitPackage = helpers.mkPackageOption {
|
||||||
|
name = "git";
|
||||||
|
default = pkgs.git;
|
||||||
|
};
|
||||||
|
|
||||||
recommendedSettings = mkOption {
|
recommendedSettings = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
@ -188,7 +193,7 @@ in
|
||||||
foldtext = "gitgutter#fold#foldtext";
|
foldtext = "gitgutter#fold#foldtext";
|
||||||
};
|
};
|
||||||
|
|
||||||
extraPackages = [ pkgs.git ] ++ grepPackage;
|
extraPackages = [ cfg.gitPackage ] ++ [ grepPackage ];
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
gitgutter_max_signs = mkIf (cfg.maxSigns != null) cfg.maxSigns;
|
gitgutter_max_signs = mkIf (cfg.maxSigns != null) cfg.maxSigns;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue