Svelte#
Server#
For more information about the LSP server, check svelteserver.
Installation#
This Server supports automatic install.
Install this language server with M-xlsp-install-server
RETsvelte-ls
RET.
npm i -g svelte-language-server
Debugger: Not available#
Available configurations#
lsp-svelte-plugin-css-color-presentations-enable
#
Type: boolean
Default: t
Enable color picker for CSS
lsp-svelte-plugin-css-completions-emmet
#
Type: boolean
Default: t
Enable emmet auto completions for CSS
lsp-svelte-plugin-css-completions-enable
#
Type: boolean
Default: t
Enable auto completions for CSS
lsp-svelte-plugin-css-diagnostics-enable
#
Type: boolean
Default: t
Enable diagnostic messages for CSS
lsp-svelte-plugin-css-document-colors-enable
#
Type: boolean
Default: t
Enable document colors for CSS
lsp-svelte-plugin-css-document-symbols-enable
#
Type: boolean
Default: t
Enable document symbols for CSS
lsp-svelte-plugin-css-enable
#
Type: boolean
Default: t
Enable the CSS plugin
lsp-svelte-plugin-css-globals
#
Type: string
Default: ``
Which css files should be checked for global variables
(--global-var: value;
).
These variables are added to the css completions. String of comma-separated file paths or globs relative to workspace root.
lsp-svelte-plugin-css-hover-enable
#
Type: boolean
Default: t
Enable hover info for CSS
lsp-svelte-plugin-css-selection-range-enable
#
Type: boolean
Default: t
Enable selection range for CSS
lsp-svelte-plugin-html-completions-emmet
#
Type: boolean
Default: t
Enable emmet auto completions for HTML
lsp-svelte-plugin-html-completions-enable
#
Type: boolean
Default: t
Enable auto completions for HTML
lsp-svelte-plugin-html-document-symbols-enable
#
Type: boolean
Default: t
Enable document symbols for HTML
lsp-svelte-plugin-html-enable
#
Type: boolean
Default: t
Enable the HTML plugin
lsp-svelte-plugin-html-hover-enable
#
Type: boolean
Default: t
Enable hover info for HTML
lsp-svelte-plugin-html-tag-complete-enable
#
Type: boolean
Default: t
Enable HTML tag auto closing
lsp-svelte-plugin-svelte-code-actions-enable
#
Type: boolean
Default: t
Enable Code Actions for Svelte
lsp-svelte-plugin-svelte-compiler-warnings
#
Type: (alist :key-type (symbol :tag Warning code) :value-type (choice (const :tag Ignore ignore) (const :tag Treat as error error)))
Default: nil
Svelte compiler warning codes to ignore or to treat as errors. Example: `((css-unused-selector . ignore) (unused-export-let . error))
lsp-svelte-plugin-svelte-completions-enable
#
Type: boolean
Default: t
Enable auto completions for Svelte
lsp-svelte-plugin-svelte-diagnostics-enable
#
Type: boolean
Default: t
Enable diagnostic messages for Svelte
lsp-svelte-plugin-svelte-enable
#
Type: boolean
Default: t
Enable the Svelte plugin
lsp-svelte-plugin-svelte-format-enable
#
Type: boolean
Default: t
Enable formatting for Svelte (includes css & js)
lsp-svelte-plugin-svelte-hover-enable
#
Type: boolean
Default: t
Enable hover information for Svelte
lsp-svelte-plugin-svelte-rename-enable
#
Type: boolean
Default: t
Enable rename/move Svelte files functionality
lsp-svelte-plugin-svelte-selection-range-enable
#
Type: boolean
Default: t
Enable selection range for Svelte
lsp-svelte-plugin-typescript-code-actions-enable
#
Type: boolean
Default: t
Enable code actions for TypeScript
lsp-svelte-plugin-typescript-completions-enable
#
Type: boolean
Default: t
Enable completions for TypeScript
lsp-svelte-plugin-typescript-definitions-enable
#
Type: boolean
Default: t
Enable go to definition for TypeScript
lsp-svelte-plugin-typescript-diagnostics-enable
#
Type: boolean
Default: t
Enable diagnostic messages for TypeScript
lsp-svelte-plugin-typescript-document-symbols-enable
#
Type: boolean
Default: t
Enable document symbols for TypeScript
lsp-svelte-plugin-typescript-enable
#
Type: boolean
Default: t
Enable the TypeScript plugin
lsp-svelte-plugin-typescript-find-references-enable
#
Type: boolean
Default: t
Enable find-references for TypeScript
lsp-svelte-plugin-typescript-hover-enable
#
Type: boolean
Default: t
Enable hover info for TypeScript
lsp-svelte-plugin-typescript-rename-enable
#
Type: boolean
Default: t
Enable rename functionality for JS/TS variables inside Svelte files
lsp-svelte-plugin-typescript-selection-range-enable
#
Type: boolean
Default: t
Enable selection range for TypeScript
lsp-svelte-plugin-typescript-signature-help-enable
#
Type: boolean
Default: t
Enable signature help (parameter hints) for TypeScript