Revert "Migrate to eglot"

This reverts commit 193dce0fa5.
This commit is contained in:
coolneng 2022-12-18 01:04:16 +01:00
parent 24a3c71c13
commit 72f1079538
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 17 additions and 6 deletions

13
+ui.el
View File

@ -17,10 +17,15 @@
(setq direnv-always-show-summary nil)
;; Change splash-screen banner
(setq fancy-splash-image "~/.doom.d/assets/emacs.svg")
;; Remove distracting LSP UI elements
(after! eglot
(setq eldoc-echo-area-use-multiline-p nil)
(set-popup-rule! "^\\*eglot-help" :size 0.2 :quit t :select t))
;; Disable LSP documentation popup
(after! lsp-ui
(setq lsp-ui-doc-enable nil
lsp-signature-auto-activate nil
lsp-enable-symbol-highlighting nil
lsp-ui-sideline-enable nil
lsp-modeline-code-actions-enable nil
lsp-headerline-breadcrumb-enable nil
lsp-len-enable nil))
;; Shrink minibuffer
(after! vertico
(setq vertico-count 8))

View File

@ -64,7 +64,13 @@
;; Associate polymode to R markdown files
(add-to-list 'auto-mode-alist '("\\.[rR]md\\'" . poly-markdown+R-mode))
;; Set clangd as C/C++ LSP
(set-eglot-client! 'cc-mode '("clangd" "-j=3" "--clang-tidy"))
(setq lsp-clients-clangd-args '("-j=3"
"--background-index"
"--clang-tidy"
"--completion-style=detailed"
"--header-insertion=never"
"--header-insertion-decorators=0"))
(after! lsp-clangd (set-lsp-priority! 'clangd 2))
;; Use relative line numbers (Usage: number <j/k>)
(setq display-line-numbers-type 'relative)
;; Use pass as auth-source

View File

@ -92,7 +92,7 @@
;;gist ; interacting with github gists
lookup ; navigate your code and its documentation
;;+docsets) ; ...or in Dash docsets locally
(lsp +eglot) ; M-x vscode
lsp ; M-x vscode
;;macos ; MacOS-specific commands
magit ; a git porcelain for Emacs
make ; run make tasks from Emacs