nix-community.nixvim/plugins/utils/easyescape.nix
2023-01-25 00:03:26 +00:00

24 lines
491 B
Nix

{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.plugins.easyescape;
helpers = import ../helpers.nix { inherit lib; };
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 = [
cfg.package
];
};
}