summaryrefslogtreecommitdiff
path: root/lisp/web.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/web.el')
-rw-r--r--lisp/web.el17
1 files changed, 5 insertions, 12 deletions
diff --git a/lisp/web.el b/lisp/web.el
index b076147..e71673d 100644
--- a/lisp/web.el
+++ b/lisp/web.el
@@ -81,18 +81,11 @@
(add-hook 'flycheck-mode-hook #'my-use-eslint-from-node-modules)
;; Package management
-(use-package eglot
- :custom
- (eglot-autoshutdown t)
- :ensure t
- :defer 3
- :hook
- ((js-mode typescript-mode) . eglot-ensure))
- :config
- (cl-pushnew '((js-mode typescript-mode) . ("typescript-language-server" "--stdio"))
- eglot-server-programs
- :test #'equal)
-(set-face-background 'eglot-highlight-symbol-face "lemon chiffon")
+(require 'eglot)
+(add-hook 'js-mode-hook 'eglot-ensure)
+(add-hook 'typescript-mode-hook 'eglot-ensure)
+(add-to-list 'eglot-server-programs '(js-mode . ("typescript-language-server" "--stdio")))
+(add-to-list 'eglot-server-programs '(typescript-mode . ("typescript-language-server" "--stdio")))
;; Ignore certain directories in projectile
(require 'projectile)