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:
parent
e3b77e803b
commit
b3eeecc57e
2 changed files with 19 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue