specs: package option

This commit is contained in:
Alexander Nortung 2023-01-17 23:54:39 +01:00
parent 79f12d9beb
commit 04a4ce7a45

View file

@ -8,6 +8,12 @@ in
options.plugins.specs = { options.plugins.specs = {
enable = mkEnableOption "Enable specs-nvim"; enable = mkEnableOption "Enable specs-nvim";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.specs-nvim;
description = "Plugin to use for specs-nvim";
};
show_jumps = mkOption { show_jumps = mkOption {
type = types.bool; type = types.bool;
default = true; default = true;
@ -137,7 +143,7 @@ in
}; };
in in
mkIf cfg.enable { mkIf cfg.enable {
extraPlugins = [ pkgs.vimPlugins.specs-nvim ]; extraPlugins = [ cfg.package ];
highlight.SpecsPopColor.bg = mkIf (!isNull cfg.color) cfg.color; highlight.SpecsPopColor.bg = mkIf (!isNull cfg.color) cfg.color;