From 2fac73b8d4377f699283f88d9d7c0cb700f9f3c7 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Wed, 22 Oct 2025 03:55:22 +0100 Subject: [PATCH] plugins/tailwind-tools: move deprecation to `plugins/deprecation.nix` --- plugins/by-name/tailwind-tools/default.nix | 6 ------ plugins/deprecation.nix | 5 +++++ .../test-sources/plugins/by-name/tailwind-tools/default.nix | 3 ++- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/by-name/tailwind-tools/default.nix b/plugins/by-name/tailwind-tools/default.nix index f33b8be6..4c69c38e 100644 --- a/plugins/by-name/tailwind-tools/default.nix +++ b/plugins/by-name/tailwind-tools/default.nix @@ -101,12 +101,6 @@ 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/plugins/deprecation.nix b/plugins/deprecation.nix index deb47254..bd58f2ff 100644 --- a/plugins/deprecation.nix +++ b/plugins/deprecation.nix @@ -1,6 +1,11 @@ { lib, ... }: let deprecated = { + # Added 2025-10-22 + tailwind-tools = '' + 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. + ''; }; removed.plugins = { # Added 2023-08-29 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 93e69ffd..e8853158 100644 --- a/tests/test-sources/plugins/by-name/tailwind-tools/default.nix +++ b/tests/test-sources/plugins/by-name/tailwind-tools/default.nix @@ -4,7 +4,8 @@ test.warnings = expect: [ (expect "count" 1) - (expect "any" "Nixvim (plugins.tailwind-tools): The upstream GitHub project for tailwind-tools is archived,") + (expect "any" "Nixvim (plugins.tailwind-tools): This plugin has been deprecated.") + (expect "any" "Consider disabling it or switching to an alternative.") ]; };