minimize LSP mode visual clutter with a quick config

use this if you want to get rid of the hovers constantly jumping in and out, breadcrumbs, inline error messages, etc. and just retain autocompletion and syntax checking.

or the alternative: RTFM and do it yourself: https://emacs-lsp.github.io/lsp-mode/tutorials/how-to-turn-off/

config

;; Disables most hovers, breadcrumps, mode-line info
(setq lsp-ui-doc-enable nil)
(setq lsp-lens-enable nil)
(setq lsp-headerline-breadcrumb-enable nil)
(setq lsp-ui-sideline--code-actions nil)
(setq lsp-ui-sideline-enable nil)
(setq lsp-modeline-code-actions-enable nil)
(setq lsp-eldoc-enable-hover nil)
(setq lsp-signature-auto-activate nil)
(setq lsp-signature-render-documentation nil)
(setq lsp-completion-show-detail nil)
;; Disable file-watch and logging for performance
(setq lsp-enable-file-watchers nil)
(setq lsp-log-io nil)

comparison

exhibit A

default:

changed:

exhibit B

default:

changed:

#programming #emacs