easyescape: package option

This commit is contained in:
Alexander Nortung 2023-01-17 23:12:15 +01:00
parent 2298e766ce
commit 11fa1fc7ad

View file

@ -8,11 +8,17 @@ in
options = { options = {
plugins.easyescape = { plugins.easyescape = {
enable = mkEnableOption "Enable easyescape"; enable = mkEnableOption "Enable easyescape";
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.vim-easyescape;
description = "Plugin to use for easyescape";
};
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
extraPlugins = with pkgs.vimPlugins; [ extraPlugins = [
vim-easyescape cfg.package
]; ];
}; };
} }