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 = {
plugins.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 {
extraPlugins = with pkgs.vimPlugins; [
vim-easyescape
extraPlugins = [
cfg.package
];
};
}