summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2018-02-02 15:26:11 +0100
committerAlan Pearce2018-02-02 15:26:11 +0100
commitc1baaeee90c3de9b489c237594ce514b8cf21f90 (patch)
tree5c4eb88ecc67a79240a40c736dc1efa5ed6b788a /emacs
parent11b419661896ab2ecb394d540670ff5163a37757 (diff)
downloaddotfiles-c1baaeee90c3de9b489c237594ce514b8cf21f90.tar.lz
dotfiles-c1baaeee90c3de9b489c237594ce514b8cf21f90.tar.zst
dotfiles-c1baaeee90c3de9b489c237594ce514b8cf21f90.zip
Emacs: Only configure lsp-javascript if server installed
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 81f3f0c..886f1a4 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -2193,6 +2193,7 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer."
 ;;;;;; lsp-javascript
 
 (use-package lsp-javascript-typescript
+  :if (executable-find "javascript-typescript-langserver")
   :config (progn
             (add-hook 'js2-mode-hook #'lsp-javascript-typescript-enable)
             (add-hook 'typescript-mode-hook #'lsp-javascript-typescript-enable)))