LSP: Don't show errors twice in modeline.
This commit is contained in:
parent
45fbc64587
commit
bc7b3e5b65
|
@ -24,7 +24,8 @@
|
||||||
(lsp-keep-workspace-alive nil)
|
(lsp-keep-workspace-alive nil)
|
||||||
(lsp-headerline-breadcrumb-segments
|
(lsp-headerline-breadcrumb-segments
|
||||||
'(path-up-to-project file symbols))
|
'(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
|
:custom-face
|
||||||
;; Semantic highlighting. TODO: Check later if better options are available.
|
;; Semantic highlighting. TODO: Check later if better options are available.
|
||||||
(lsp-face-semhl-variable ((t (:inherit font-lock-variable-name-face
|
(lsp-face-semhl-variable ((t (:inherit font-lock-variable-name-face
|
||||||
|
@ -51,8 +52,9 @@
|
||||||
;; Mark lsp-clients-clangd-args as safe to override.
|
;; Mark lsp-clients-clangd-args as safe to override.
|
||||||
(put 'lsp-clients-clangd-args 'safe-local-variable #'consp)
|
(put 'lsp-clients-clangd-args 'safe-local-variable #'consp)
|
||||||
|
|
||||||
(defun my/rebind-other-file-maybe ()
|
(defun my/lsp-init ()
|
||||||
"Rebind C-: to LSP equivalent."
|
"Change some settings after entering lsp-mode."
|
||||||
|
;; Rebind C-: to LSP equivalent.
|
||||||
(when (equal major-mode 'c++-mode)
|
(when (equal major-mode 'c++-mode)
|
||||||
(bind-key "C-:" #'lsp-clangd-find-other-file 'c++-mode-map))))
|
(bind-key "C-:" #'lsp-clangd-find-other-file 'c++-mode-map))))
|
||||||
:bind ("C-c C-f" . lsp-execute-code-action)
|
:bind ("C-c C-f" . lsp-execute-code-action)
|
||||||
|
@ -65,7 +67,7 @@
|
||||||
(css-mode . lsp)
|
(css-mode . lsp)
|
||||||
(js-mode . lsp)
|
(js-mode . lsp)
|
||||||
(lsp-mode . lsp-enable-which-key-integration)
|
(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)))
|
(lsp-mode . my/company-prescient-sort-length-off)))
|
||||||
|
|
||||||
;; Eye-candy and flycheck support for lsp-mode.
|
;; Eye-candy and flycheck support for lsp-mode.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user