add: update config

This commit is contained in:
asep.komarudin 2024-05-30 19:03:34 +07:00
parent 93e5e8860f
commit b319a12e99
7 changed files with 154 additions and 115 deletions

View file

@ -1,92 +1,92 @@
return {
cmd = { "tailwindcss-language-server", "--stdio" },
filetypes = {
"aspnetcorerazor",
"astro",
"astro-markdown",
"blade",
"clojure",
"django-html",
"htmldjango",
"edge",
"eelixir",
"elixir",
"ejs",
"erb",
"eruby",
"gohtml",
"gohtmltmpl",
"haml",
"handlebars",
"hbs",
"html",
"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",
},
-- init options
init_options = {
userLanguages = {
eelixir = "html-eex",
eruby = "erb",
templ = "html",
},
},
-- root dir
root_dir = root_pattern(
"tailwind.config.js",
"tailwind.config.cjs",
"tailwind.config.mjs",
"tailwind.config.ts",
"postcss.config.js",
"postcss.config.cjs",
"postcss.config.mjs",
"postcss.config.ts",
"package.json",
"node_modules",
".git"
),
-- settings
settings = {
tailwindCSS = {
classAttributes = { "class", "className", "class:list", "classList", "ngClass" },
lint = {
cssConflict = "warning",
invalidApply = "error",
invalidConfigPath = "error",
invalidScreen = "error",
invalidTailwindDirective = "error",
invalidVariant = "error",
recommendedVariantOrder = "warning",
},
validate = true,
},
},
-- cmd = { "tailwindcss-language-server", "--stdio" },
-- filetypes = {
-- "aspnetcorerazor",
-- "astro",
-- "astro-markdown",
-- "blade",
-- "clojure",
-- "django-html",
-- "htmldjango",
-- "edge",
-- "eelixir",
-- "elixir",
-- "ejs",
-- "erb",
-- "eruby",
-- "gohtml",
-- "gohtmltmpl",
-- "haml",
-- "handlebars",
-- "hbs",
-- "html",
-- "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",
-- },
-- -- init options
-- init_options = {
-- userLanguages = {
-- eelixir = "html-eex",
-- eruby = "erb",
-- templ = "html",
-- },
-- },
-- -- root dir
-- root_dir = root_pattern(
-- "tailwind.config.js",
-- "tailwind.config.cjs",
-- "tailwind.config.mjs",
-- "tailwind.config.ts",
-- "postcss.config.js",
-- "postcss.config.cjs",
-- "postcss.config.mjs",
-- "postcss.config.ts",
-- "package.json",
-- "node_modules",
-- ".git"
-- ),
-- -- settings
-- settings = {
-- tailwindCSS = {
-- classAttributes = { "class", "className", "class:list", "classList", "ngClass" },
-- lint = {
-- cssConflict = "warning",
-- invalidApply = "error",
-- invalidConfigPath = "error",
-- invalidScreen = "error",
-- invalidTailwindDirective = "error",
-- invalidVariant = "error",
-- recommendedVariantOrder = "warning",
-- },
-- validate = true,
-- },
-- },
}