JavaScript

Syntax highlighting

:TSInstall javascript

Supported language servers

javascript = {
  "denols", "ember", "eslint", "eslintls", "rome", "stylelint_lsp", "tailwindcss", "tsserver"
  }

Only tsserver is enabled by default and the other servers need to be manually configured.

JavaScript standalone server (tsserver)

tsserver requires one of the following files/folders : package.json, tsconfig.jsonopen in new window, jsconfig.jsonopen in new window or .git. in the root directory of the project

See nvim-lspconfigopen in new window for more information about the tsserver language server configuration options.

Supported formatters

javascript = { "deno", "eslint", "eslint_d", "prettier", "prettier_d_slim", "prettierd", "rustywind" }

The configured formatter(s) must be installed separately.

Supported linters

javascript = { "eslint", "eslint_d" }

The configured linter(s) must be installed separately.

Supported language servers

javascript = { "denols", "ember", "eslint", "eslintls", "rome", "stylelint_lsp", "tailwindcss", "tsserver" }