Settings#
These are lsp-mode
specific custom settings:
lsp-log-io
- If non-nil, print all messages to and from the language server to*lsp-log*
.lsp-print-performance
- If non-nil, print performance info. to*lsp-log*
.lsp-report-if-no-buffer
- If non nil the errors will be reported even when the file is not open.lsp-keep-workspace-alive
- If non nil keep workspace alive when the last workspace buffer is closed.lsp-enable-snippet
- Enable/disable snippet completion support.lsp-auto-guess-root
- Automatically guess the project root using projectile/project. Do not use this setting unless you are familiar withlsp-mode
internals and you are sure that all of your projects are followingprojectile=/=project.el
conventions.lsp-restart
- Defines how server exited event must be handled.lsp-session-file
- File where session information is stored.lsp-auto-configure
- Auto configurelsp-mode
. When set tot
,lsp-mode
will auto-configurelsp-ui
,dap-mode
and other settings that makes sense to enable by default.lsp-document-sync-method
- How to sync the document with the language server.lsp-auto-execute-action
- Auto-execute single action.lsp-eldoc-render-all
- Display all of the info returned bydocument/onHover
. If this is nil,eldoc
will show only the symbol information.lsp-enable-completion-at-point
- Enablecompletion-at-point
integration.lsp-enable-xref
- Enable xref integration.lsp-diagnostics-provider
- Specifies which package to use for diagnostics. Choose from:auto
,:flycheck
,:flymake
and:none
. Default is:auto
which means use:flycheck
if present and fallback to:flymake
.lsp-enable-indentation
- Indent regions using the file formatting functionality provided by the language server.lsp-enable-on-type-formatting
- EnabletextDocument/onTypeFormatting
integration.lsp-before-save-edits
- If non-nil,lsp-mode
will apply edits suggested by the language server before saving a document.lsp-imenu-show-container-name
- Display the symbol's container name in an imenu entry.lsp-imenu-container-name-separator
- Separator string to use to separate the container name from the symbol while displaying imenu entries.lsp-imenu-sort-methods
- How to sort the imenu items. The value is a list ofkind
,name
orposition
. Priorities are determined by the index of the element.lsp-response-timeout
- Number of seconds to wait for a response from the language server before timing out.lsp-enable-file-watchers
- If non-nil lsp-mode will watch the files in the workspace if the server has requested that.lsp-server-trace
- Request trace mode on the language server.lsp-semantic-tokens-enable
- Enable semantic tokens highlighting supportlsp-enable-imenu
- If non-nil, automatically enable imenu integration when server providestextDocument/documentSymbol
.lsp-signature-auto-activate
- Auto activate signature when trigger conditions are meet.lsp-signature-render-documentation
- Include signature documentation in signature help.lsp-enable-text-document-color
- EnabletextDocument/documentColor
when server supports it.lsp-headerline-breadcrumb-enable
- Enablelsp-headerline-breadcrumb-mode
.
Last update: January 14, 2021