Replace eglot with lsp-mode as LSP backend
`lsp-mode` claims to be non-blocking and is equally easy to set up, so let's give it a try.
This commit is contained in:
parent
0090975a5b
commit
9ac3640159
|
@ -58,3 +58,4 @@
|
||||||
/sandbox/.emacs.d
|
/sandbox/.emacs.d
|
||||||
/flycheck_init.el
|
/flycheck_init.el
|
||||||
/projects
|
/projects
|
||||||
|
/.lsp-session-v1
|
||||||
|
|
9
init.el
9
init.el
|
@ -1477,12 +1477,9 @@
|
||||||
:commands (global-flycheck-mode flycheck-mode)
|
:commands (global-flycheck-mode flycheck-mode)
|
||||||
:init (setq flycheck-emacs-lisp-load-path 'inherit))
|
:init (setq flycheck-emacs-lisp-load-path 'inherit))
|
||||||
|
|
||||||
(use-package eglot
|
(use-package lsp-mode
|
||||||
:ensure t
|
:ensure t
|
||||||
:commands (eglot-ensure)
|
:commands (lsp))
|
||||||
;; Highlighting takes a lot of time and does not add much value, so let's just
|
|
||||||
;; disable it
|
|
||||||
:init (setq eglot-ignored-server-capabilites '(:documentHighlightProvider)))
|
|
||||||
|
|
||||||
|
|
||||||
;; * Mail
|
;; * Mail
|
||||||
|
@ -2995,7 +2992,7 @@ With given ARG, display files in `db/important-document-path’."
|
||||||
:config (progn
|
:config (progn
|
||||||
(add-hook 'python-mode-hook #'highlight-indentation-mode)
|
(add-hook 'python-mode-hook #'highlight-indentation-mode)
|
||||||
(add-hook 'python-mode-hook #'company-mode)
|
(add-hook 'python-mode-hook #'company-mode)
|
||||||
(add-hook 'python-mode-hook #'eglot-ensure)))
|
(add-hook 'python-mode-hook #'lsp)))
|
||||||
|
|
||||||
(use-package shr
|
(use-package shr
|
||||||
:init (setq shr-use-fonts nil
|
:init (setq shr-use-fonts nil
|
||||||
|
|
Loading…
Reference in New Issue