summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-07-04 13:16:33 +0200
committerAlan Pearce2019-07-04 13:17:29 +0200
commite47aa57b5d497415c987aec01152d07502a6622f (patch)
tree5f99899f4bd28bbd40e020253d15cf0006041795
parent2bce042f41e444b31a33b973ed24c69aa13ca63f (diff)
downloaddotfiles-e47aa57b5d497415c987aec01152d07502a6622f.tar.lz
dotfiles-e47aa57b5d497415c987aec01152d07502a6622f.tar.zst
dotfiles-e47aa57b5d497415c987aec01152d07502a6622f.zip
Emacs: Fix lsp javascript setup
-rw-r--r--emacs/.emacs.d/main.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index fc5cbce..ecd257e 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -513,13 +513,13 @@ With two prefix arguments, write out the day and month name."
 
 (use-package lsp-mode
   :ghook ('(typescript-mode-hook
-            javascript-mode-hook)
+            js-mode-hook)
           #'lsp)
   :custom ((lsp-auto-guess-root t)
            (lsp-prefer-flymake t)
            (lsp-enable-symbol-highlighting nil))
   :config (progn
-            (add-to-list 'lsp-language-id-configuration '(javascript-mode . "javascript"))))
+            (add-to-list 'lsp-language-id-configuration '(js-mode . "javascript"))))
 
 (use-package lsp-ui
   :after lsp-mode