diff options
| author | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-04-21 14:42:22 +0000 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2025-04-21 14:42:22 +0000 |
| commit | 92c7b5a51e970f6a40e1873e3254b05d5bc93ea8 (patch) | |
| tree | 5b93d5f89aefcb7b609a9be8308231988dbefe91 | |
| parent | feat(tailwind): add `vim.lsp.config` support (diff) | |
| download | nvim-lspconfig-92c7b5a51e970f6a40e1873e3254b05d5bc93ea8.tar nvim-lspconfig-92c7b5a51e970f6a40e1873e3254b05d5bc93ea8.tar.gz nvim-lspconfig-92c7b5a51e970f6a40e1873e3254b05d5bc93ea8.tar.bz2 nvim-lspconfig-92c7b5a51e970f6a40e1873e3254b05d5bc93ea8.tar.lz nvim-lspconfig-92c7b5a51e970f6a40e1873e3254b05d5bc93ea8.tar.xz nvim-lspconfig-92c7b5a51e970f6a40e1873e3254b05d5bc93ea8.tar.zst nvim-lspconfig-92c7b5a51e970f6a40e1873e3254b05d5bc93ea8.zip | |
docs: update configs.md
skip-checks: true
| -rw-r--r-- | doc/configs.md | 58 | ||||
| -rw-r--r-- | 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 @@ -9944,6 +9944,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 https://taplo.tamasfe.dev/cli/usage/language-server.html |
