From c2e13f23f16e3c6774f85f70f5a123adbff07e11 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 4 Jul 2020 17:57:46 +0200 Subject: [PATCH] vim: Add language servers for js and ts They run inside of a docker container and have read only access to the home directory. --- home/.config/nvim/init.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index 591c384..fced86f 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -99,6 +99,8 @@ let g:LanguageClient_serverCommands = { \ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'], \ 'go': ['gopls'], \ 'python': ['pyls'], + \ 'typescript': ['docker', 'run', '--init', '-i', '-v', '$HOME:$HOME:ro', 'r.sbruder.de/javascript-typescript-langserver'], + \ 'javascript': ['docker', 'run', '--init', '-i', '-v', '$HOME:$HOME:ro', 'r.sbruder.de/javascript-typescript-langserver'], \ } let g:LanguageClient_loggingFile = '~/.local/share/nvim/LanguageClient.log'