Skip to content

Commit 1040d59

Browse files
committed
plugins/hmts: remove with lib;
1 parent 58a1f4a commit 1040d59

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

plugins/by-name/hmts/default.nix

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
pkgs,
55
...
66
}:
7-
with lib;
87
let
98
cfg = config.plugins.hmts;
109
in
1110
{
12-
meta.maintainers = [ maintainers.GaetanLepage ];
11+
meta.maintainers = [ lib.maintainers.GaetanLepage ];
1312

1413
options.plugins.hmts = {
15-
enable = mkEnableOption "hmts.nvim";
14+
enable = lib.mkEnableOption "hmts.nvim";
1615

1716
package = lib.mkPackageOption pkgs "hmts.nvim" {
1817
default = [
@@ -22,8 +21,8 @@ in
2221
};
2322
};
2423

25-
config = mkIf cfg.enable {
26-
warnings = optional (
24+
config = lib.mkIf cfg.enable {
25+
warnings = lib.optional (
2726
!config.plugins.treesitter.enable
2827
) "Nixvim: hmts needs treesitter to function as intended";
2928

0 commit comments

Comments
 (0)