vim: Add language servers for js and ts

They run inside of a docker container and have read only access to the
home directory.
This commit is contained in:
Simon Bruder 2020-07-04 17:57:46 +02:00
parent e75167a514
commit c2e13f23f1
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -99,6 +99,8 @@ let g:LanguageClient_serverCommands = {
\ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'], \ 'rust': ['~/.cargo/bin/rustup', 'run', 'stable', 'rls'],
\ 'go': ['gopls'], \ 'go': ['gopls'],
\ 'python': ['pyls'], \ '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' let g:LanguageClient_loggingFile = '~/.local/share/nvim/LanguageClient.log'