gitgutter: package option

This commit is contained in:
Alexander Nortung 2023-01-16 23:07:14 +01:00
parent ced09fb2a9
commit 1d2899b79a

View file

@ -9,6 +9,12 @@ in
plugins.gitgutter = {
enable = mkEnableOption "Enable gitgutter";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.gitgutter;
description = "Plugin to use for gitgutter";
};
recommendedSettings = mkOption {
type = types.bool;
default = true;
@ -170,7 +176,7 @@ in
grepCommand = if builtins.isAttrs cfg.grep then cfg.grep.command else cfg.grep;
in
mkIf cfg.enable {
extraPlugins = [ pkgs.vimPlugins.gitgutter ];
extraPlugins = [ cfg.package ];
options = mkIf cfg.recommendedSettings {
updatetime = 100;