From 3bfc1bd6c3b8eaa830cb7df8e9db6f0f0ca13101 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 2 Feb 2018 11:50:59 +0100 Subject: Emacs: use LSP for javascript and typescript --- emacs/.emacs.d/main.el | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'emacs') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index d960a206..2fbd6440 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -2186,6 +2186,13 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer." :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 -- cgit 1.4.1