(LSP) Switch from lsp-mode to eglot

This commit is contained in:
Marcel Kapfer 2023-06-14 18:08:07 +02:00
parent f6903f318f
commit 1b1408ec06
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -1805,37 +1805,21 @@ Source: [[https://www.flycheck.org][flycheck.org]]
:init (global-flycheck-mode)) :init (global-flycheck-mode))
#+end_src #+end_src
** lsp ** eglot
Language Server Protocoll capabilities for Emacs Language Server Protocoll capabilities for Emacs
Source: [[https://github.com/emacs-lsp/lsp-mode][GitHub:emacs-lsp/lsp-mode]]
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package lsp-mode (use-package eglot
:hook ((python-mode . lsp-deferred) :hook ((python-mode . eglot-ensure)
(go-mode . lsp-deferred) (go-mode . eglot-ensure)
(php-mode . lsp-deferred) (php-mode . eglot-ensure)
(vue-mode . lsp-deferred) (vue-mode . eglot-ensure)
(web-mode . lsp-deferred) (web-mode . eglot-ensure)
(typescript-mode . lsp-deferred) (typescript-mode . eglot-ensure)
(js-mode . lsp-deferred) (js-mode . eglot-ensure))
(lsp-mode . lsp-enable-which-key-integration)) :commands (eglot eglot-ensure))
:commands (lsp lsp-deferred)
:init (setq lsp-keymap-prefix "C-c C-l")
:config (setq lsp-prefer-capf t))
(use-package lsp-ui
:commands lsp-ui-mode
:config
(setq lsp-ui-sideline-show-code-actions t
lsp-ui-sideline-show-hover t))
(use-package lsp-ivy
:commands lsp-ivy-workspace-symbol)
(use-package lsp-treemacs
:commands lsp-treemacs-errors-list)
#+end_src #+end_src
** editorconfig ** editorconfig