nvim-config11/lsp/tailwindcss.lua

36 lines
1.6 KiB
Lua
Raw Normal View History

2025-03-27 08:18:20 +00:00
return {
cmd = { "tailwindcss-language-server", "--stdio" },
2025-03-31 01:58:12 +01:00
filetypes = {
"aspnetcorerazor", "astro", "astro-markdown", "blade", "clojure",
"django-html", "htmldjango", "edge", "eelixir", "elixir", "ejs",
"erb", "eruby", "gohtml", "gohtmltmpl", "haml", "handlebars", "hbs",
"html", "htmlangular", "html-eex", "heex", "jade", "leaf", "liquid",
"markdown", "mdx", "mustache", "njk", "nunjucks", "php", "razor",
"slim", "twig", "css", "less", "postcss", "sass", "scss", "stylus",
"sugarss", "javascript", "javascriptreact", "reason", "rescript",
"typescript", "typescriptreact", "vue", "svelte", "templ" },
root_markers = { ".git" },
settings = {
tailwindCSS = {
classAttributes = { "class", "className", "classList", "class:list", "ngClass", "pathClassName" },
experimental = {
classRegex = {
{
"(?:clsx|cva|cx)\\(([^)(]*(?:\\([^)(]*(?:\\([^)(]*(?:\\([^)(]*\\)[^)(]*)*\\)[^)(]*)*\\)[^)(]*)*)\\)",
"'([^']*)'",
},
{
"(?:clsx|cva|cx)\\(([^)(]*(?:\\([^)(]*(?:\\([^)(]*(?:\\([^)(]*\\)[^)(]*)*\\)[^)(]*)*\\)[^)(]*)*)\\)",
'"([^"]*)"',
},
{
"(?:clsx|cva|cx)\\(([^)(]*(?:\\([^)(]*(?:\\([^)(]*(?:\\([^)(]*\\)[^)(]*)*\\)[^)(]*)*\\)[^)(]*)*)\\)",
"`([^`]*)`",
2025-03-27 08:18:20 +00:00
},
},
},
},
},
2025-03-27 08:18:20 +00:00
}