ensure eglot package + add prog-mode-hook
- TODO: don't add it to prog-mode-hook, add it to c-mode-hook and others supporting LSP
This commit is contained in:
parent
5559316d09
commit
593de2293d
1 changed files with 7 additions and 0 deletions
|
|
@ -874,6 +874,7 @@ https://github.com/MaskRay/emacs-ccls
|
||||||
https://github.com/emacs-lsp/lsp-mode
|
https://github.com/emacs-lsp/lsp-mode
|
||||||
https://github.com/emacs-lsp/lsp-ui
|
https://github.com/emacs-lsp/lsp-ui
|
||||||
https://github.com/tigersoldier/company-lsp
|
https://github.com/tigersoldier/company-lsp
|
||||||
|
https://github.com/joaotavora/eglot
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(defun +ccls/enable ()
|
(defun +ccls/enable ()
|
||||||
|
|
@ -908,6 +909,12 @@ https://github.com/tigersoldier/company-lsp
|
||||||
company-lsp-cache-candidates t
|
company-lsp-cache-candidates t
|
||||||
company-lsp-async t)
|
company-lsp-async t)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
(use-package eglot
|
||||||
|
:ensure t
|
||||||
|
:init
|
||||||
|
(add-hook 'prog-mode-hook 'eglot-ensure)
|
||||||
|
)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** (Relative) Line numbers
|
** (Relative) Line numbers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue