From c2838b6fd7a0fe8c4e73bed6b24c1e1b8757c2ba Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Thu, 5 Dec 2024 22:54:16 -0800 Subject: [PATCH] feat: better tailwindcss support --- flake.nix | 1 + init.lua | 5 ++++- lua/lsp/init.lua | 1 - lua/plugins/lz-spec.lua | 6 ++++++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index c417cbd..4e3dae9 100644 --- a/flake.nix +++ b/flake.nix @@ -178,6 +178,7 @@ texpresso-vim blink-cmp clangd_extensions-nvim + tailwind-tools-nvim ]; }; diff --git a/init.lua b/init.lua index 91d7ae3..fd546cb 100644 --- a/init.lua +++ b/init.lua @@ -75,4 +75,7 @@ vim.api.nvim_create_autocmd("TextYankPost", { end, }) --- vim.keymap.set("i", "", require("scripts.intellitab").indent) +-- silence the hover 'no information available' notification +vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { + silent = true, +}) diff --git a/lua/lsp/init.lua b/lua/lsp/init.lua index 1fb52fa..d395718 100644 --- a/lua/lsp/init.lua +++ b/lua/lsp/init.lua @@ -62,7 +62,6 @@ M.setup = function() offset_encoding = "utf-8", }) lspconfig.svelte.setup({}) - lspconfig.tailwindcss.setup({}) lspconfig.texlab.setup({}) lspconfig.clangd.setup({}) end diff --git a/lua/plugins/lz-spec.lua b/lua/plugins/lz-spec.lua index e762c99..2799be8 100644 --- a/lua/plugins/lz-spec.lua +++ b/lua/plugins/lz-spec.lua @@ -250,4 +250,10 @@ return { }) end, }, + { + "tailwind-tools.nvim", + after = function() + require("tailwind-tools").setup({}) + end, + }, }