1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 19:46:06 +01:00

plugins/tailwind-tools: throw warning when enabling

This commit is contained in:
Vasilis Manetas 2025-10-21 19:53:38 +02:00 committed by Matt Sturgeon
parent e3b77e803b
commit b3eeecc57e
2 changed files with 19 additions and 0 deletions

View file

@ -101,6 +101,12 @@ lib.nixvim.plugins.mkNeovimPlugin {
};
};
extraConfig = cfg: {
warnings = lib.nixvim.mkWarnings "plugins.tailwind-tools" {
message = ''The upstream GitHub project for tailwind-tools is archived, and enabling this plugin triggers an lspconfig deprecation warning. Consider disabling it or switching to an alternative.'';
};
};
settingsExample = {
document_color = {
conceal = {

View file

@ -1,6 +1,11 @@
{
empty = {
plugins.tailwind-tools.enable = true;
test.warnings = expect: [
(expect "count" 1)
(expect "any" "Nixvim (plugins.tailwind-tools): The upstream GitHub project for tailwind-tools is archived,")
];
};
defaults = {
@ -41,6 +46,10 @@
};
};
};
test.warnings = expect: [
(expect "count" 1)
];
};
example = {
@ -57,5 +66,9 @@
};
};
};
test.warnings = expect: [
(expect "count" 1)
];
};
}