From b0a12075ca6ad696e64ea4bf5342b9ebb107198b Mon Sep 17 00:00:00 2001 From: "RingOfStorms (Joshua Bell)" Date: Fri, 12 Apr 2024 03:13:09 -0500 Subject: [PATCH] add intellisense for tailwind variants --- lua/plugins/lsp.lua | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 376d45c..0bd17ed 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -27,6 +27,14 @@ local servers = { }, tailwindcss = { -- tailwind css + -- https://www.tailwind-variants.org/docs/getting-started#intellisense-setup-optional + tailwindCSS = { + experimental = { + classRegex = { + { "tv\\((([^()]*|\\([^()]*\\))*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]" }, + }, + }, + }, }, pyright = { -- python @@ -192,7 +200,7 @@ return { build = "MasonUpdate", opts = {}, }, - { "folke/neodev.nvim", opts = {} }, -- lua stuff + { "folke/neodev.nvim", opts = {} }, -- lua stuff { "williamboman/mason-lspconfig.nvim", }, @@ -295,11 +303,11 @@ return { -- TODO I am getting lag sometimes I think this may be the cause, limiting to 100 for a while to see what happens { name = "nvim_lsp", priority = 8, max_item_count = 100 }, -- This source integrates with LuaSnip, a snippet engine for Neovim. It suggests snippets that you can insert into your code - { name = "luasnip", priority = 7 }, + { name = "luasnip", priority = 7 }, -- This source provides file path completions, helping you to complete file paths in your code - { name = "path", priority = 7 }, + { name = "path", priority = 7 }, -- This source provides completion items from the current buffer, meaning it suggests words that have already been typed in the same file. - { name = "buffer", priority = 6 }, + { name = "buffer", priority = 6 }, -- Rust crates.io integration { name = "crates" }, },