add intellisense for tailwind variants
This commit is contained in:
parent
0cedc88fce
commit
b0a12075ca
1 changed files with 12 additions and 4 deletions
|
@ -27,6 +27,14 @@ local servers = {
|
||||||
},
|
},
|
||||||
tailwindcss = {
|
tailwindcss = {
|
||||||
-- tailwind css
|
-- tailwind css
|
||||||
|
-- https://www.tailwind-variants.org/docs/getting-started#intellisense-setup-optional
|
||||||
|
tailwindCSS = {
|
||||||
|
experimental = {
|
||||||
|
classRegex = {
|
||||||
|
{ "tv\\((([^()]*|\\([^()]*\\))*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
pyright = {
|
pyright = {
|
||||||
-- python
|
-- python
|
||||||
|
@ -192,7 +200,7 @@ return {
|
||||||
build = "<cmd>MasonUpdate",
|
build = "<cmd>MasonUpdate",
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
{ "folke/neodev.nvim", opts = {} }, -- lua stuff
|
{ "folke/neodev.nvim", opts = {} }, -- lua stuff
|
||||||
{
|
{
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"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
|
-- 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 },
|
{ 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
|
-- 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
|
-- 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.
|
-- 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
|
-- Rust crates.io integration
|
||||||
{ name = "crates" },
|
{ name = "crates" },
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue