vim: Use nix-shell for language servers

This commit is contained in:
Simon Bruder 2020-10-11 14:45:44 +02:00
parent 70a16f41be
commit fae5102519
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -110,11 +110,11 @@ Plug 'autozimu/LanguageClient-neovim', {
\ }
let g:LanguageClient_serverCommands = {
\ 'rust': ['rustup', 'run', 'stable', 'rls'],
\ 'go': ['gopls'],
\ 'python': ['pyls'],
\ 'typescript': ['docker', 'run', '--rm', '--init', '-i', '-v', '$HOME:$HOME:ro', '--network=none', 'r.sbruder.de/javascript-typescript-langserver'],
\ 'javascript': ['docker', 'run', '--rm', '--init', '-i', '-v', '$HOME:$HOME:ro', '--network=none', 'r.sbruder.de/javascript-typescript-langserver'],
\ 'rust': ['nix-shell', '--quiet', '-p', 'rls', '--run', 'rls'],
\ 'go': ['nix-shell', '--quiet', '-p', 'gopls', '--run', 'gopls'],
\ 'python': ['nix-shell', '--quiet', '-p', 'python38Packages.python-language-server', '--run', 'pyls'],
\ 'typescript': ['nix-shell', '--quiet', '-p', 'nodePackages.javascript-typescript-langserver', '--run', 'javascript-typescript-stdio'],
\ 'javascript': ['nix-shell', '--quiet', '-p', 'nodePackages.javascript-typescript-langserver', '--run', 'javascript-typescript-stdio'],
\ 'haskell': ['nix-shell', '--quiet', '-p', 'haskellPackages.haskell-language-server', '--run', 'haskell-language-server --lsp'],
\ }