1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 12:50:04 +08:00

fix(lsp): specify cmd for typescriptreact

This commit is contained in:
Jaryk 2021-09-22 03:25:11 +00:00 committed by GitHub
parent 25bf4a1b32
commit 218f16e4f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 25 deletions

View File

@ -150,6 +150,7 @@ let s:lsp_servers = {
\ 'scala' : ['metals-vim'],
\ 'sh' : ['bash-language-server', 'start'],
\ 'typescript' : ['typescript-language-server', '--stdio'],
\ 'typescriptreact' : ['typescript-language-server', '--stdio'],
\ 'vue' : ['vls']
\ }

View File

@ -152,31 +152,32 @@ To enable lsp support for a specified filetype, you may need to load this layer
default language server commands:
| language | server command |
| ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `ada` | `['ada_language_server']` |
| `c` | `['clangd']` |
| `cpp` | `['clangd']` |
| `crystal` | `['scry']` |
| `css` | `['css-languageserver', '--stdio']` |
| `dart` | `['dart_language_server']` |
| `elm` | `['elm-language-server']` |
| `go` | `['gopls']` |
| `haskell` | `['hie', '--lsp']` |
| `html` | `['html-languageserver', '--stdio']` |
| `javascript` | `['javascript-typescript-stdio']` |
| `julia` | `['julia', '--startup-file=no', '--history-file=no', '-e', 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);']` |
| `objc` | `['clangd']` |
| `objcpp` | `['clangd']` |
| `php` | `['php', 'path/to/bin/php-language-server.php']` |
| `purescript` | `['purescript-language-server', '--stdio']` |
| `python` | `['pyls']` |
| `ruby` | `['solargraph', 'stdio']` |
| `reason` | `['ocaml-language-server']` |
| `rust` | `['rustup', 'run', 'nightly', 'rls']` |
| `sh` | `['bash-language-server', 'start']` |
| `typescript` | `['typescript-language-server', '--stdio']` |
| `vue` | `['vls']` |
| language | server command |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `ada` | `['ada_language_server']` |
| `c` | `['clangd']` |
| `cpp` | `['clangd']` |
| `crystal` | `['scry']` |
| `css` | `['css-languageserver', '--stdio']` |
| `dart` | `['dart_language_server']` |
| `elm` | `['elm-language-server']` |
| `go` | `['gopls']` |
| `haskell` | `['hie', '--lsp']` |
| `html` | `['html-languageserver', '--stdio']` |
| `javascript` | `['javascript-typescript-stdio']` |
| `julia` | `['julia', '--startup-file=no', '--history-file=no', '-e', 'using LanguageServer; server = LanguageServer.LanguageServerInstance(STDIN, STDOUT, false); server.runlinter = true; run(server);']` |
| `objc` | `['clangd']` |
| `objcpp` | `['clangd']` |
| `php` | `['php', 'path/to/bin/php-language-server.php']` |
| `purescript` | `['purescript-language-server', '--stdio']` |
| `python` | `['pyls']` |
| `ruby` | `['solargraph', 'stdio']` |
| `reason` | `['ocaml-language-server']` |
| `rust` | `['rustup', 'run', 'nightly', 'rls']` |
| `sh` | `['bash-language-server', 'start']` |
| `typescript` | `['typescript-language-server', '--stdio']` |
| `typescriptreact` | `['typescript-language-server', '--stdio']` |
| `vue` | `['vls']` |
To override the server command, you may need to use `override_cmd` option: