Skip to content

Commit

Permalink
plugins/hmts: migrate to mkNeovimPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Dec 11, 2024
1 parent 1040d59 commit c169e6d
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions plugins/by-name/hmts/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}

0 comments on commit c169e6d

Please sign in to comment.