plugins/conjure: init plugin (#339)

* plugins/conjure: init plugin

* conjure: fix import
This commit is contained in:
Pedro Alves 2023-04-17 16:39:54 +01:00 committed by GitHub
parent 75a5e45b2b
commit f8c412ba7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 0 deletions

View file

@ -68,6 +68,7 @@
./utils/comment-nvim.nix
./utils/commentary.nix
./utils/conjure.nix
./utils/easyescape.nix
./utils/endwise.nix
./utils/floaterm.nix

20
plugins/utils/conjure.nix Normal file
View file

@ -0,0 +1,20 @@
{
pkgs,
config,
lib,
...
}:
with lib; let
cfg = config.plugins.conjure;
helpers = import ../helpers.nix {inherit lib;};
in {
options.plugins.conjure = {
enable = mkEnableOption "Conjure";
package = helpers.mkPackageOption "conjure" pkgs.vimPlugins.conjure;
};
config = mkIf cfg.enable {
extraPlugins = [cfg.package];
};
}

View file

@ -0,0 +1,5 @@
{
empty = {
plugins.conjure.enable = true;
};
}