plugins/hmts: fix warning

This commit is contained in:
Austin Horstman 2024-12-11 11:57:52 -06:00
parent 4d8b9aa55f
commit 551fc90797
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 ];
}; };