nix-community.nixvim/plugins/utils/easyescape.nix

25 lines
491 B
Nix
Raw Normal View History

2021-11-23 21:08:29 +01:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.plugins.easyescape;
2021-11-23 21:08:29 +01:00
helpers = import ../helpers.nix { inherit lib; };
in
2021-11-23 21:08:29 +01:00
{
options = {
plugins.easyescape = {
2021-11-23 21:08:29 +01:00
enable = mkEnableOption "Enable easyescape";
2023-01-17 23:12:15 +01:00
package = mkOption {
type = types.package;
default = pkgs.vimPlugins.vim-easyescape;
description = "Plugin to use for easyescape";
};
2021-11-23 21:08:29 +01:00
};
};
config = mkIf cfg.enable {
2023-01-17 23:12:15 +01:00
extraPlugins = [
cfg.package
];
2021-11-23 21:08:29 +01:00
};
}