all repos — archive/dotfiles @ e47aa57b5d497415c987aec01152d07502a6622f

Superseded by nixfiles

Emacs: Fix lsp javascript setup
Alan Pearce alan@alanpearce.eu
Thu, 04 Jul 2019 13:16:33 +0200
commit

e47aa57b5d497415c987aec01152d07502a6622f

parent

2bce042f41e444b31a33b973ed24c69aa13ca63f

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -513,13 +513,13 @@ (flymake-warning-bitmap '(left-vertical-bar compilation-warning)))) 
 (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