plugins/conjure: switch to mkVimPlugin

This commit is contained in:
Gaetan Lepage 2024-12-15 15:55:56 +01:00
parent 58d2a5ac9c
commit ece372190a

View file

@ -1,25 +1,9 @@
{ {
lib, lib,
helpers,
config,
pkgs,
... ...
}: }:
with lib; lib.nixvim.vim-plugin.mkVimPlugin {
let name = "conjure";
cfg = config.plugins.conjure;
in
{
options.plugins.conjure = {
enable = mkEnableOption "Conjure";
package = lib.mkPackageOption pkgs "conjure" { maintainers = [ lib.maintainers.GaetanLepage ];
default = [
"vimPlugins"
"conjure"
];
};
};
config = mkIf cfg.enable { extraPlugins = [ cfg.package ]; };
} }