From 92c7b5a51e970f6a40e1873e3254b05d5bc93ea8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 21 Apr 2025 14:42:22 +0000 Subject: docs: update configs.md skip-checks: true --- doc/configs.md | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++- doc/configs.txt | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 112 insertions(+), 2 deletions(-) diff --git a/doc/configs.md b/doc/configs.md index 8f369a09..938c3f4a 100644 --- a/doc/configs.md +++ b/doc/configs.md @@ -289,6 +289,7 @@ Nvim by running `:help lspconfig-all`. - [syntax_tree](#syntax_tree) - [systemd_ls](#systemd_ls) - [tabby_ml](#tabby_ml) +- [tailwindcss](#tailwindcss) - [taplo](#taplo) - [tblgen_lsp_server](#tblgen_lsp_server) - [teal_ls](#teal_ls) @@ -7235,7 +7236,7 @@ Default config: ``` - `cmd` : ```lua - { "OmniSharp", "-z", "--hostPID", "1980", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } + { "OmniSharp", "-z", "--hostPID", "1870", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } ``` - `filetypes` : ```lua @@ -10564,6 +10565,61 @@ Default config: --- +## tailwindcss + +https://github.com/tailwindlabs/tailwindcss-intellisense + +Tailwind CSS Language Server can be installed via npm: + +npm install -g @tailwindcss/language-server + +Snippet to enable the language server: +```lua +require'lspconfig'.tailwindcss.setup{} +``` + +Default config: +- `before_init` source (use "gF" to open): [../lsp/tailwindcss.lua:8](../lsp/tailwindcss.lua#L8) +- `cmd` : + ```lua + { "tailwindcss-language-server", "--stdio" } + ``` +- `filetypes` : + ```lua + { "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` : + ```lua + { "tailwind.config.js", "tailwind.config.cjs", "tailwind.config.mjs", "tailwind.config.ts", "postcss.config.js", "postcss.config.cjs", "postcss.config.mjs", "postcss.config.ts" } + ``` +- `settings` : + ```lua + { + tailwindCSS = { + classAttributes = { "class", "className", "class:list", "classList", "ngClass" }, + includeLanguages = { + eelixir = "html-eex", + eruby = "erb", + htmlangular = "html", + templ = "html" + }, + lint = { + cssConflict = "warning", + invalidApply = "error", + invalidConfigPath = "error", + invalidScreen = "error", + invalidTailwindDirective = "error", + invalidVariant = "error", + recommendedVariantOrder = "warning" + }, + validate = true + } + } + ``` +- `workspace_required` : `true` + +--- + ## taplo https://taplo.tamasfe.dev/cli/usage/language-server.html diff --git a/doc/configs.txt b/doc/configs.txt index 61f35683..df76a50d 100644 --- a/doc/configs.txt +++ b/doc/configs.txt @@ -6710,7 +6710,7 @@ Default config: ``` - `cmd` : ```lua - { "OmniSharp", "-z", "--hostPID", "1980", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } + { "OmniSharp", "-z", "--hostPID", "1870", "DotNet:enablePackageRestore=false", "--encoding", "utf-8", "--languageserver" } ``` - `filetypes` : ```lua @@ -9943,6 +9943,60 @@ Default config: ``` +------------------------------------------------------------------------------ +tailwindcss + +https://github.com/tailwindlabs/tailwindcss-intellisense + +Tailwind CSS Language Server can be installed via npm: + +npm install -g @tailwindcss/language-server + +Snippet to enable the language server: >lua + vim.lsp.enable('tailwindcss') + + +Default config: +- `before_init` source (use "gF" to open): [../lsp/tailwindcss.lua:8](../lsp/tailwindcss.lua#L8) +- `cmd` : + ```lua + { "tailwindcss-language-server", "--stdio" } + ``` +- `filetypes` : + ```lua + { "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` : + ```lua + { "tailwind.config.js", "tailwind.config.cjs", "tailwind.config.mjs", "tailwind.config.ts", "postcss.config.js", "postcss.config.cjs", "postcss.config.mjs", "postcss.config.ts" } + ``` +- `settings` : + ```lua + { + tailwindCSS = { + classAttributes = { "class", "className", "class:list", "classList", "ngClass" }, + includeLanguages = { + eelixir = "html-eex", + eruby = "erb", + htmlangular = "html", + templ = "html" + }, + lint = { + cssConflict = "warning", + invalidApply = "error", + invalidConfigPath = "error", + invalidScreen = "error", + invalidTailwindDirective = "error", + invalidVariant = "error", + recommendedVariantOrder = "warning" + }, + validate = true + } + } + ``` +- `workspace_required` : `true` + + ------------------------------------------------------------------------------ taplo -- cgit v1.2.3-70-g09d2