Skip to content

Commit

Permalink
plugins/conjure: switch to mkVimPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Dec 15, 2024
1 parent 58d2a5a commit ece3721
Showing 1 changed file with 3 additions and 19 deletions.
22 changes: 3 additions & 19 deletions plugins/by-name/conjure/default.nix
Original file line number Diff line number Diff line change
@@ -1,25 +1,9 @@
{
lib,
helpers,
config,
pkgs,
...
}:
with lib;
let
cfg = config.plugins.conjure;
in
{
options.plugins.conjure = {
enable = mkEnableOption "Conjure";

package = lib.mkPackageOption pkgs "conjure" {
default = [
"vimPlugins"
"conjure"
];
};
};
lib.nixvim.vim-plugin.mkVimPlugin {
name = "conjure";

config = mkIf cfg.enable { extraPlugins = [ cfg.package ]; };
maintainers = [ lib.maintainers.GaetanLepage ];
}

0 comments on commit ece3721

Please sign in to comment.