From b3eeecc57e805b609ef692d1ee55a9580eceb229 Mon Sep 17 00:00:00 2001 From: Vasilis Manetas Date: Tue, 21 Oct 2025 19:53:38 +0200 Subject: [PATCH] plugins/tailwind-tools: throw warning when enabling --- plugins/by-name/tailwind-tools/default.nix | 6 ++++++ .../plugins/by-name/tailwind-tools/default.nix | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/plugins/by-name/tailwind-tools/default.nix b/plugins/by-name/tailwind-tools/default.nix index 4c69c38e..f33b8be6 100644 --- a/plugins/by-name/tailwind-tools/default.nix +++ b/plugins/by-name/tailwind-tools/default.nix @@ -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 = { diff --git a/tests/test-sources/plugins/by-name/tailwind-tools/default.nix b/tests/test-sources/plugins/by-name/tailwind-tools/default.nix index a2475261..93e69ffd 100644 --- a/tests/test-sources/plugins/by-name/tailwind-tools/default.nix +++ b/tests/test-sources/plugins/by-name/tailwind-tools/default.nix @@ -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) + ]; }; }