plugins/hmts: migrate to mkNeovimPlugin

This commit is contained in:
Austin Horstman 2024-12-11 11:57:53 -06:00
parent ce62cafda3
commit d0d4c9c367
No known key found for this signature in database

View file

@ -1,31 +1,21 @@
{ {
lib, lib,
config, config,
pkgs,
... ...
}: }:
let lib.nixvim.neovim-plugin.mkNeovimPlugin {
cfg = config.plugins.hmts; name = "hmts";
in originalName = "hmts.nvim";
{ package = "hmts-nvim";
meta.maintainers = [ lib.maintainers.GaetanLepage ];
options.plugins.hmts = { maintainers = [ lib.maintainers.GaetanLepage ];
enable = lib.mkEnableOption "hmts.nvim";
package = lib.mkPackageOption pkgs "hmts.nvim" { callSetup = false;
default = [ hasSettings = false;
"vimPlugins" hasConfigAttrs = false;
"hmts-nvim" extraConfig = {
];
};
};
config = lib.mkIf cfg.enable {
warnings = lib.optional ( warnings = lib.optional (
!config.plugins.treesitter.enable !config.plugins.treesitter.enable
) "Nixvim: hmts needs treesitter to function as intended"; ) "Nixvim: hmts needs treesitter to function as intended";
extraPlugins = [ cfg.package ];
}; };
} }