Migrate to eglot
This commit is contained in:
parent
c62ad66a4a
commit
64e33fd3c1
13
+ui.el
13
+ui.el
|
@ -18,15 +18,10 @@
|
||||||
(setq direnv-always-show-summary nil)
|
(setq direnv-always-show-summary nil)
|
||||||
;; Change splash-screen banner
|
;; Change splash-screen banner
|
||||||
(setq fancy-splash-image "~/.doom.d/assets/emacs.svg")
|
(setq fancy-splash-image "~/.doom.d/assets/emacs.svg")
|
||||||
;; Disable LSP documentation popup
|
;; Remove distracting LSP UI elements
|
||||||
(after! lsp-ui
|
(after! eglot
|
||||||
(setq lsp-ui-doc-enable nil
|
(setq eldoc-echo-area-use-multiline-p nil)
|
||||||
lsp-signature-auto-activate nil
|
(set-popup-rule! "^\\*eglot-help" :size 0.2 :quit t :select t))
|
||||||
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
|
;; Shrink minibuffer
|
||||||
(after! vertico
|
(after! vertico
|
||||||
(setq vertico-count 8))
|
(setq vertico-count 8))
|
||||||
|
|
|
@ -64,13 +64,7 @@
|
||||||
;; Associate polymode to R markdown files
|
;; Associate polymode to R markdown files
|
||||||
(add-to-list 'auto-mode-alist '("\\.[rR]md\\'" . poly-markdown+R-mode))
|
(add-to-list 'auto-mode-alist '("\\.[rR]md\\'" . poly-markdown+R-mode))
|
||||||
;; Set clangd as C/C++ LSP
|
;; Set clangd as C/C++ LSP
|
||||||
(setq lsp-clients-clangd-args '("-j=3"
|
(set-eglot-client! 'cc-mode '("clangd" "-j=3" "--clang-tidy"))
|
||||||
"--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>)
|
;; Use relative line numbers (Usage: number <j/k>)
|
||||||
(setq display-line-numbers-type 'relative)
|
(setq display-line-numbers-type 'relative)
|
||||||
;; Use pass as auth-source
|
;; Use pass as auth-source
|
||||||
|
|
2
init.el
2
init.el
|
@ -92,7 +92,7 @@
|
||||||
;;gist ; interacting with github gists
|
;;gist ; interacting with github gists
|
||||||
lookup ; navigate your code and its documentation
|
lookup ; navigate your code and its documentation
|
||||||
;;+docsets) ; ...or in Dash docsets locally
|
;;+docsets) ; ...or in Dash docsets locally
|
||||||
lsp ; M-x vscode
|
(lsp +eglot) ; M-x vscode
|
||||||
;;macos ; MacOS-specific commands
|
;;macos ; MacOS-specific commands
|
||||||
magit ; a git porcelain for Emacs
|
magit ; a git porcelain for Emacs
|
||||||
make ; run make tasks from Emacs
|
make ; run make tasks from Emacs
|
||||||
|
|
Loading…
Reference in New Issue