A guide on disabling/enabling lsp-mode features#
Early in the project, we decided to auto-configure/enable all of the stable
features by default in order to improve discoverability and simplify the setup
for the beginners. This decision was considered good by the majority of the
users coming from IDEs but still in Emacs
community there are a lot of people
looking for a minimal distraction-free experience especially traditional long
time users. Although the turn off defcustom
settings are documented in
corresponding README
and available via customize-group
it turned out that it
is not very easy to find them when you want to turn a particular feature off
which led to a lot of frustration. Hopefully, this article will help solving
that issue:
1. Symbol highlighting
(setq lsp-enable-symbol-highlighting nil)
lsp-ui-doc
- on hover dialogs.
* disable via
(setq lsp-ui-doc-enable nil)
(setq lsp-ui-doc-show-with-cursor nil)
(setq lsp-ui-doc-show-with-mouse nil)
(setq lsp-lens-enable nil)
(setq lsp-headerline-breadcrumb-enable nil)
(setq lsp-ui-sideline-enable nil)
(setq lsp-ui-sideline-show-code-actions nil)
(setq lsp-ui-sideline-enable nil)
(setq lsp-ui-sideline-show-hover nil)
(setq lsp-modeline-code-actions-enable nil)
Flycheck
(or flymake
if no flycheck
is present)
(setq lsp-diagnostics-provider :none)
(setq lsp-ui-sideline-enable nil)
(setq lsp-ui-sideline-show-diagnostics nil)
(setq lsp-eldoc-enable-hover nil)
(setq lsp-modeline-diagnostics-enable nil)
(setq lsp-signature-auto-activate nil) ;; you could manually request them via `lsp-signature-activate`
(setq lsp-signature-render-documentation nil)
company-mode
)
(setq lsp-completion-provider :none)
(setq lsp-completion-show-detail nil)
(setq lsp-completion-show-kind nil)
Last update:
December 20, 2024