diff options
| author | github-actions <github-actions@github.com> | 2021-06-14 08:11:21 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2021-06-14 08:11:21 +0000 |
| commit | 64a9af6efd6f737866a5f768bb93f8fea1b36809 (patch) | |
| tree | 06e3798d97961580b6bdf6793f55e3d4a077a2be | |
| parent | fix(tailwindcss): remove package.json to fix docgen (#980) (diff) | |
| download | nvim-lspconfig-64a9af6efd6f737866a5f768bb93f8fea1b36809.tar nvim-lspconfig-64a9af6efd6f737866a5f768bb93f8fea1b36809.tar.gz nvim-lspconfig-64a9af6efd6f737866a5f768bb93f8fea1b36809.tar.bz2 nvim-lspconfig-64a9af6efd6f737866a5f768bb93f8fea1b36809.tar.lz nvim-lspconfig-64a9af6efd6f737866a5f768bb93f8fea1b36809.tar.xz nvim-lspconfig-64a9af6efd6f737866a5f768bb93f8fea1b36809.tar.zst nvim-lspconfig-64a9af6efd6f737866a5f768bb93f8fea1b36809.zip | |
[docgen] Update CONFIG.md
skip-checks: true
| -rw-r--r-- | CONFIG.md | 43 |
1 files changed, 42 insertions, 1 deletions
@@ -76,6 +76,7 @@ that config. - [sumneko_lua](#sumneko_lua) - [svelte](#svelte) - [svls](#svls) +- [tailwindcss](#tailwindcss) - [terraformls](#terraformls) - [texlab](#texlab) - [tflint](#tflint) @@ -3422,7 +3423,7 @@ require'lspconfig'.ocamllsp.setup{} Default Values: cmd = { "ocamllsp" } - filetypes = { "ocamlinterface", "ocaml", "ocamllex", "menhir", "reason" } + filetypes = { "menhir", "reason", "ocamlinterface", "ocaml", "ocamllex" } get_language_id = function (_, ftype) return language_id_of[ftype] end root_dir = root_pattern("*.opam", "esy.json", "package.json", ".git") ``` @@ -5883,6 +5884,46 @@ require'lspconfig'.svls.setup{} end ``` +## tailwindcss + +https://github.com/tailwindlabs/tailwindcss-intellisense + +Tailwind CSS Language Server + +**NOTE:** The current tailwindcss-language-server npm package is a different project. + +Until the standalone server is published to npm, you can extract the server from the VS Code package: + +```bash +curl -L -o tailwindcss-intellisense.vsix $(curl -s https://api.github.com/repos/tailwindlabs/tailwindcss-intellisense/releases/latest | grep 'browser_' | cut -d\" -f4) +unzip tailwindcss-intellisense.vsix -d tailwindcss-intellisense +echo "#\!/usr/bin/env node\n$(cat tailwindcss-intellisense/extension/dist/server/tailwindServer.js)" > tailwindcss-language-server +chmod +x tailwindcss-language-server +``` + +Copy or symlink tailwindcss-language-server to somewhere in your $PATH. + +Alternatively, it might be packaged for your operating system, eg.: +https://aur.archlinux.org/packages/tailwindcss-language-server/ + + +```lua +require'lspconfig'.tailwindcss.setup{} + + Commands: + + Default Values: + cmd = { "tailwindcss-language-server", "--stdio" } + filetypes = { "aspnetcorerazor", "astro", "astro-markdown", "blade", "django-html", "edge", "eelixir", "ejs", "erb", "eruby", "gohtml", "haml", "handlebars", "hbs", "html", "html-eex", "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" } + init_options = { + userLanguages = { + eelixir = "html-eex", + eruby = "erb" + } + } + root_dir = root_pattern('tailwind.config.js', 'tailwind.config.ts', 'postcss.config.js', 'postcss.config.ts', 'package.json', 'node_modules', '.git') +``` + ## terraformls https://github.com/hashicorp/terraform-ls |
