From 9ac36401591a7b41eb4f613d4aba43a631fdbdb9 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Thu, 22 Apr 2021 12:01:44 +0200 Subject: [PATCH] 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. --- .gitignore | 1 + init.el | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index bdff10e..0d95466 100644 --- a/.gitignore +++ b/.gitignore @@ -58,3 +58,4 @@ /sandbox/.emacs.d /flycheck_init.el /projects +/.lsp-session-v1 diff --git a/init.el b/init.el index b861f18..d7208d5 100644 --- a/init.el +++ b/init.el @@ -1477,12 +1477,9 @@ :commands (global-flycheck-mode flycheck-mode) :init (setq flycheck-emacs-lisp-load-path 'inherit)) -(use-package eglot +(use-package lsp-mode :ensure t - :commands (eglot-ensure) - ;; 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))) + :commands (lsp)) ;; * Mail @@ -2995,7 +2992,7 @@ With given ARG, display files in `db/important-document-path’." :config (progn (add-hook 'python-mode-hook #'highlight-indentation-mode) (add-hook 'python-mode-hook #'company-mode) - (add-hook 'python-mode-hook #'eglot-ensure))) + (add-hook 'python-mode-hook #'lsp))) (use-package shr :init (setq shr-use-fonts nil