summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2018-02-02 11:50:59 +0100
committerAlan Pearce2018-02-02 11:50:59 +0100
commit3bfc1bd6c3b8eaa830cb7df8e9db6f0f0ca13101 (patch)
tree58b5a45c670901b279d59d5ce586338214394897 /emacs
parent85da03b9865aea657d86a0a4ac69f53799886593 (diff)
downloaddotfiles-3bfc1bd6c3b8eaa830cb7df8e9db6f0f0ca13101.tar.lz
dotfiles-3bfc1bd6c3b8eaa830cb7df8e9db6f0f0ca13101.tar.zst
dotfiles-3bfc1bd6c3b8eaa830cb7df8e9db6f0f0ca13101.zip
Emacs: use LSP for javascript and typescript
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index d960a20..2fbd644 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