From ce62cafda3dc3108270d08d6c064a3cb6fef82d0 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 11 Dec 2024 11:57:53 -0600 Subject: [PATCH] plugins/hmts: remove with lib; --- plugins/by-name/hmts/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/by-name/hmts/default.nix b/plugins/by-name/hmts/default.nix index 42ac9da6..2657a139 100644 --- a/plugins/by-name/hmts/default.nix +++ b/plugins/by-name/hmts/default.nix @@ -4,15 +4,14 @@ pkgs, ... }: -with lib; let cfg = config.plugins.hmts; in { - meta.maintainers = [ maintainers.GaetanLepage ]; + meta.maintainers = [ lib.maintainers.GaetanLepage ]; options.plugins.hmts = { - enable = mkEnableOption "hmts.nvim"; + enable = lib.mkEnableOption "hmts.nvim"; package = lib.mkPackageOption pkgs "hmts.nvim" { default = [ @@ -22,8 +21,8 @@ in }; }; - config = mkIf cfg.enable { - warnings = optional ( + config = lib.mkIf cfg.enable { + warnings = lib.optional ( !config.plugins.treesitter.enable ) "Nixvim: hmts needs treesitter to function as intended";