Browse Source

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.
master
Daniel 2 months ago
parent
commit
9ac3640159
No known key found for this signature in database
2 changed files with 4 additions and 6 deletions
  1. 1
    0
      .gitignore
  2. 3
    6
      init.el

+ 1
- 0
.gitignore View File

@@ -58,3 +58,4 @@
58 58
 /sandbox/.emacs.d
59 59
 /flycheck_init.el
60 60
 /projects
61
+/.lsp-session-v1

+ 3
- 6
init.el View File

@@ -1477,12 +1477,9 @@
1477 1477
   :commands (global-flycheck-mode flycheck-mode)
1478 1478
   :init (setq flycheck-emacs-lisp-load-path 'inherit))
1479 1479
 
1480
-(use-package eglot
1480
+(use-package lsp-mode
1481 1481
   :ensure t
1482
-  :commands (eglot-ensure)
1483
-  ;; Highlighting takes a lot of time and does not add much value, so let's just
1484
-  ;; disable it
1485
-  :init (setq eglot-ignored-server-capabilites '(:documentHighlightProvider)))
1482
+  :commands (lsp))
1486 1483
 
1487 1484
 
1488 1485
 ;; * Mail
@@ -2995,7 +2992,7 @@ With given ARG, display files in `db/important-document-path’."
2995 2992
   :config (progn
2996 2993
             (add-hook 'python-mode-hook #'highlight-indentation-mode)
2997 2994
             (add-hook 'python-mode-hook #'company-mode)
2998
-            (add-hook 'python-mode-hook #'eglot-ensure)))
2995
+            (add-hook 'python-mode-hook #'lsp)))
2999 2996
 
3000 2997
 (use-package shr
3001 2998
   :init (setq shr-use-fonts nil

Loading…
Cancel
Save