LSP: Don't show errors twice in modeline.

This commit is contained in:
tastytea 2021-06-03 13:49:39 +02:00
parent 45fbc64587
commit bc7b3e5b65
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 6 additions and 4 deletions

View File

@ -24,7 +24,8 @@
(lsp-keep-workspace-alive nil)
(lsp-headerline-breadcrumb-segments
'(path-up-to-project file symbols))
(lsp-bash-highlight-parsing-errors t))
(lsp-bash-highlight-parsing-errors t)
(lsp-modeline-diagnostics-enable nil))
:custom-face
;; Semantic highlighting. TODO: Check later if better options are available.
(lsp-face-semhl-variable ((t (:inherit font-lock-variable-name-face
@ -51,8 +52,9 @@
;; Mark lsp-clients-clangd-args as safe to override.
(put 'lsp-clients-clangd-args 'safe-local-variable #'consp)
(defun my/rebind-other-file-maybe ()
"Rebind C-: to LSP equivalent."
(defun my/lsp-init ()
"Change some settings after entering lsp-mode."
;; Rebind C-: to LSP equivalent.
(when (equal major-mode 'c++-mode)
(bind-key "C-:" #'lsp-clangd-find-other-file 'c++-mode-map))))
:bind ("C-c C-f" . lsp-execute-code-action)
@ -65,7 +67,7 @@
(css-mode . lsp)
(js-mode . lsp)
(lsp-mode . lsp-enable-which-key-integration)
(lsp-mode . my/rebind-other-file-maybe)
(lsp-mode . my/lsp-init)
(lsp-mode . my/company-prescient-sort-length-off)))
;; Eye-candy and flycheck support for lsp-mode.