diff --git a/plugins/by-name/hmts/default.nix b/plugins/by-name/hmts/default.nix index 2657a13980..02675c3b43 100644 --- a/plugins/by-name/hmts/default.nix +++ b/plugins/by-name/hmts/default.nix @@ -1,31 +1,21 @@ { lib, config, - pkgs, ... }: -let - cfg = config.plugins.hmts; -in -{ - meta.maintainers = [ lib.maintainers.GaetanLepage ]; - - options.plugins.hmts = { - enable = lib.mkEnableOption "hmts.nvim"; +lib.nixvim.neovim-plugin.mkNeovimPlugin { + name = "hmts"; + originalName = "hmts.nvim"; + package = "hmts-nvim"; - package = lib.mkPackageOption pkgs "hmts.nvim" { - default = [ - "vimPlugins" - "hmts-nvim" - ]; - }; - }; + maintainers = [ lib.maintainers.GaetanLepage ]; - config = lib.mkIf cfg.enable { + callSetup = false; + hasSettings = false; + hasLuaConfig = false; + extraConfig = { warnings = lib.optional ( !config.plugins.treesitter.enable ) "Nixvim: hmts needs treesitter to function as intended"; - - extraPlugins = [ cfg.package ]; }; }