Skip to content

Vue 2#

Server#

For more information about the LSP server, check vue-language-server.

Installation#

This Server supports automatic install. Install this language server with M-xlsp-install-serverRETvlsRET.

npm install -g vls

Debugger: Yes (Firefox/Chrome)#

Available configurations#

lsp-javascript-references-code-lens-enabled#

Type: boolean

Default: nil

Enable/disable references CodeLens in JavaScript files.


lsp-typescript-check-npm-is-installed#

Type: boolean

Default: t

Check if NPM is installed for Automatic Type Acquisition.


lsp-typescript-disable-automatic-type-acquisition#

Type: boolean

Default: nil

Disables automatic type acquisition. Automatic type acquisition fetches @types packages from npm to improve IntelliSense for external libraries.


lsp-typescript-implementations-code-lens-enabled#

Type: boolean

Default: nil

Enable/disable implementations CodeLens. This CodeLens shows the implementers of an interface.


lsp-typescript-npm#

Type: (repeat string)

Default: nil

Specifies the path to the NPM exec used for Automatic Type Acquisition. Requires using TypeScript 2.3.4 or newer in the workspace.


lsp-typescript-references-code-lens-enabled#

Type: boolean

Default: nil

Enable/disable references CodeLens in TypeScript files.


lsp-typescript-tsdk#

Type: (repeat string)

Default: nil

Specifies the folder path containing tsserver and lib*.d.ts files to use.


lsp-typescript-tsserver-log#

Type: (choice (const off) (const terse) (const normal) (const verbose))

Default: off

Enables logging of the TS server to a file. This log can be used to diagnose TS Server issues. The log may contain file paths, source code, and other potentially sensitive information from your project.


lsp-vetur-completion-auto-import#

Type: boolean

Default: t

Include completion for module export and auto import them


lsp-vetur-completion-scaffold-snippet-sources#

Type: alist

Default: ((workspace . (W)) (user . (U)) (vetur . (V)))

Where Vetur source Scaffold Snippets from and how to indicate them. - workspace: /.vscode/vetur/snippets. - user: /User/snippets/vetur. - vetur: Bundled in Vetur. The source value can be a string "(User)" or an emoji "✌". Set a source to "" to disable it.


lsp-vetur-completion-tag-casing#

Type: (choice (const initial) (const kebab))

Default: kebab

Casing conversion for tag completion


lsp-vetur-dev-log-level#

Type: (choice (const INFO) (const DEBUG))

Default: INFO

The vls log level for development


lsp-vetur-dev-vls-path#

Type: string

Default: ``

The vls path for development


lsp-vetur-dev-vls-port#

Type: integer

Default: -1

The vls port for development


lsp-vetur-emmet#

Type: (choice (const never) (const inMarkupAndStylesheetFilesOnly) (const always))

Default: never

Controls the Emmet suggestions that show up in the suggestion/completion list.


lsp-vetur-experimental-template-interpolation-service#

Type: boolean

Default: nil

Whether to have template interpolation service


lsp-vetur-format-default-formatter-css#

Type: (choice (const none) (const prettier))

Default: prettier

Default formatter for