Emacs: use LSP for javascript and typescript
Alan Pearce alan@alanpearce.eu
Fri, 02 Feb 2018 11:50:59 +0100
1 files changed, 7 insertions(+), 0 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -2186,6 +2186,13 @@ :diminish (indium-interaction-mode . "In") :config (progn (add-hook 'js2-mode-hook #'indium-interaction-mode))) +;;;;;; lsp-javascript + +(use-package lsp-javascript-typescript + :config (progn + (add-hook 'js2-mode-hook #'lsp-javascript-typescript-enable) + (add-hook 'typescript-mode-hook #'lsp-javascript-typescript-enable))) + ;;;;;; tern ;; Tern understands javascript. It adds really clever documented