mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-08 16:24:32 +02:00
treewide: use mkWarnings where possible
This commit is contained in:
parent
abba4af10b
commit
12e658eca8
34 changed files with 309 additions and 225 deletions
|
@ -14,8 +14,9 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
hasSettings = false;
|
||||
hasLuaConfig = false;
|
||||
extraConfig = {
|
||||
warnings = lib.optional (
|
||||
!config.plugins.treesitter.enable
|
||||
) "Nixvim: hmts needs treesitter to function as intended";
|
||||
warnings = lib.nixvim.mkWarnings "plugins.hmts" {
|
||||
when = !config.plugins.treesitter.enable;
|
||||
message = "hmts needs treesitter to function as intended";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue