Emacs: Update LSP config.

This commit is contained in:
tastytea 2021-02-08 02:06:25 +01:00
parent 8d35b27f27
commit 27e25bcbe3
1 changed files with 1 additions and 4 deletions

View File

@ -11,7 +11,6 @@
;; Client for Language Server Protocol servers.
(use-package lsp-mode
:unless slow-computer
:defines (lsp-clients-clangd-args)
:diminish lsp-mode
:custom ((lsp-prefer-flymake nil) ; Disable flymake.
@ -20,7 +19,6 @@
(lsp-restart 'auto-restart)
(lsp-enable-semantic-highlighting t) ; Needs clangd 11(?).
(lsp-semantic-tokens-apply-modifiers t)
(lsp-prefer-capf t)
(lsp-keymap-prefix "C-c l")
(lsp-keep-workspace-alive nil)
(lsp-headerline-breadcrumb-segments
@ -46,8 +44,7 @@
(python-mode . lsp)
(nxml-mode . lsp)
(json-mode . lsp)
(lsp-mode . lsp-enable-which-key-integration)
(lsp-mode . yas-minor-mode)))
(lsp-mode . lsp-enable-which-key-integration)))
;; Eye-candy and flycheck support for lsp-mode.
(use-package lsp-ui