vim-commentary: package option

This commit is contained in:
Alexander Nortung 2023-01-17 23:01:58 +01:00
parent 00d4ca89e0
commit cad521bc6a

View file

@ -9,10 +9,16 @@ in
options = { options = {
plugins.commentary = { plugins.commentary = {
enable = mkEnableOption "Enable commentary"; enable = mkEnableOption "Enable commentary";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.vim-commentary;
description = "Plugin to use for vim-commentary";
};
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
extraPlugins = [ pkgs.vimPlugins.vim-commentary ]; extraPlugins = [ cfg.package ];
}; };
} }