Emacs: Only configure lsp-javascript if server installed
Alan Pearce alan@alanpearce.eu
Fri, 02 Feb 2018 15:26:11 +0100
1 files changed, 1 insertions(+), 0 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -2193,6 +2193,7 @@ ;;;;;; 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)))