all repos — nixfiles @ c1baaeee90c3de9b489c237594ce514b8cf21f90

System and user configuration, managed by nix and home-manager

Emacs: Only configure lsp-javascript if server installed

Alan Pearce
commit

c1baaeee90c3de9b489c237594ce514b8cf21f90

parent

11b419661896ab2ecb394d540670ff5163a37757

1 file changed, 1 insertion(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.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)))