1
==============================================================================
lspconfig: require("lspconfig.health").check()
LSP configs active in this session (globally) ~
- Configured servers: lua_ls, html, cmake, clangd, rust_analyzer, gopls, jsonls, ts_ls, tailwindcss, cssls, emmet_language_server
- OK Deprecated servers: (none)
LSP configs active in this buffer (bufnr: 20) ~
- Language client log: ~/.local/state/nvim/lsp.log
- Detected filetype: `typescriptreact`
- 3 client(s) attached to this buffer
- Client: `emmet_language_server` (id: 1, bufnr: [20])
root directory: Running in single file mode.
filetypes: css, eruby, html, htmldjango, javascriptreact, less, pug, sass, scss, typescriptreact, htmlangular
cmd: ~/.local/share/nvim/mason/bin/emmet-language-server --stdio
version: `?` (Failed to get version) Tried:
`/Users/username/.local/share/nvim/mason/bin/emmet-language-server --version`
`/Users/username/.local/share/nvim/mason/bin/emmet-language-server -version`
`/Users/username/.local/share/nvim/mason/bin/emmet-language-server version`
`/Users/username/.local/share/nvim/mason/bin/emmet-language-server --help`
executable: true
autostart: true
- Client: `ts_ls` (id: 2, bufnr: [20])
root directory: ~/rs/
filetypes: javascript, javascriptreact, javascript.jsx, typescript, typescriptreact, typescript.tsx
cmd: ~/.local/share/nvim/mason/bin/typescript-language-server --stdio
version: `4.3.3`
executable: true
autostart: true
- Client: `tailwindcss` (id: 3, bufnr: [20])
root directory: ~/rs/
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
cmd: ~/.local/share/nvim/mason/bin/tailwindcss-language-server --stdio
version: `?` (Failed to get version) Tried:
`/Users/username/.local/share/nvim/mason/bin/tailwindcss-language-server --version`
`/Users/username/.local/share/nvim/mason/bin/tailwindcss-language-server -version`
`/Users/username/.local/share/nvim/mason/bin/tailwindcss-language-server version`
`/Users/username/.local/share/nvim/mason/bin/tailwindcss-language-server --help`
executable: true
autostart: true
Docs for active configs: ~
- emmet_language_server docs: >markdown
https://github.com/olrtg/emmet-language-server
Package can be installed via `npm`:
```sh
npm install -g @olrtg/emmet-language-server
```
- ts_ls docs: >markdown
https://github.com/typescript-language-server/typescript-language-server
`ts_ls`, aka `typescript-language-server`, is a Language Server Protocol implementation for TypeScript wrapping `tsserver`. Note that `ts_ls` is not `tsserver`.
`typescript-language-server` depends on `typescript`. Both packages can be installed via `npm`:
```sh
npm install -g typescript typescript-language-server
```
To configure typescript language server, add a
[`tsconfig.json`](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) or
[`jsconfig.json`](https://code.visualstudio.com/docs/languages/jsconfig) to the root of your
project.
Here's an example that disables type checking in JavaScript files.
```json
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"checkJs": false
},
"exclude": [
"node_modules"
]
}
```
### Vue support
As of 2.0.0, Volar no longer supports TypeScript itself. Instead, a plugin
adds Vue support to this language server.
*IMPORTANT*: It is crucial to ensure that `@vue/typescript-plugin` and `volar `are of identical versions.
```lua
require'lspconfig'.ts_ls.setup{
init_options = {
plugins = {
{
name = "@vue/typescript-plugin",
location = "/usr/local/lib/node_modules/@vue/typescript-plugin",
languages = {"javascript", "typescript", "vue"},
},
},
},
filetypes = {
"javascript",
"typescript",
"vue",
},
}
-- You must make sure volar is setup
-- e.g. require'lspconfig'.volar.setup{}
-- See volar's section for more information
```
`location` MUST be defined. If the plugin is installed in `node_modules`,
`location` can have any value.
`languages` must include `vue` even if it is listed in `filetypes`.
`filetypes` is extended here to include Vue SFC.
- tailwindcss docs: >markdown
https://github.com/tailwindlabs/tailwindcss-intellisense
Tailwind CSS Language Server can be installed via npm:
```sh
npm install -g @tailwindcss/language-server
```
For immediate assistance, please email our customer support: [email protected]