mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +02:00
plugins/conjure: init plugin (#339)
* plugins/conjure: init plugin * conjure: fix import
This commit is contained in:
parent
75a5e45b2b
commit
f8c412ba7f
3 changed files with 26 additions and 0 deletions
|
@ -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
20
plugins/utils/conjure.nix
Normal 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];
|
||||
};
|
||||
}
|
5
tests/test-sources/plugins/utils/conjure.nix
Normal file
5
tests/test-sources/plugins/utils/conjure.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.conjure.enable = true;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue