plugins/hmts: fix warning

This commit is contained in:
Austin Horstman 2024-12-11 10:26:12 -06:00
parent b752606681
commit 58a1f4a399
No known key found for this signature in database

View file

@ -1,6 +1,5 @@
{ {
lib, lib,
helpers,
config, config,
pkgs, pkgs,
... ...
@ -24,9 +23,9 @@ in
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
warnings = optional (!config.plugins.treesitter.enable) [ warnings = optional (
"Nixvim: hmts needs treesitter to function as intended" !config.plugins.treesitter.enable
]; ) "Nixvim: hmts needs treesitter to function as intended";
extraPlugins = [ cfg.package ]; extraPlugins = [ cfg.package ];
}; };