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:
laurensmiers 2019-03-21 15:34:05 +01:00 committed by Laurens Miers
parent 5559316d09
commit 593de2293d

View file

@ -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