Skip to content

Commit c169e6d

Browse files
committed
plugins/hmts: migrate to mkNeovimPlugin
1 parent 1040d59 commit c169e6d

File tree

1 file changed

+9
-19
lines changed

1 file changed

+9
-19
lines changed

plugins/by-name/hmts/default.nix

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
11
{
22
lib,
33
config,
4-
pkgs,
54
...
65
}:
7-
let
8-
cfg = config.plugins.hmts;
9-
in
10-
{
11-
meta.maintainers = [ lib.maintainers.GaetanLepage ];
12-
13-
options.plugins.hmts = {
14-
enable = lib.mkEnableOption "hmts.nvim";
6+
lib.nixvim.neovim-plugin.mkNeovimPlugin {
7+
name = "hmts";
8+
originalName = "hmts.nvim";
9+
package = "hmts-nvim";
1510

16-
package = lib.mkPackageOption pkgs "hmts.nvim" {
17-
default = [
18-
"vimPlugins"
19-
"hmts-nvim"
20-
];
21-
};
22-
};
11+
maintainers = [ lib.maintainers.GaetanLepage ];
2312

24-
config = lib.mkIf cfg.enable {
13+
callSetup = false;
14+
hasSettings = false;
15+
hasLuaConfig = false;
16+
extraConfig = {
2517
warnings = lib.optional (
2618
!config.plugins.treesitter.enable
2719
) "Nixvim: hmts needs treesitter to function as intended";
28-
29-
extraPlugins = [ cfg.package ];
3020
};
3121
}

0 commit comments

Comments
 (0)