1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-13 02:05:40 +08:00

Add overrid_cmd option for lsp layer

This commit is contained in:
wsdjeg 2017-12-22 21:50:03 +08:00
parent c8c9d6688a
commit 816e64c53e

View File

@ -39,6 +39,23 @@ call SpaceVim#layers#load('lsp',
\ }
```
default language server commands:
| language | server command |
| ------------ | --------------------------------- |
| `javascript` | `['javascript-typescript-stdio']` |
To override the server command, you may need to use `override_cmd` option:
```vim
call SpaceVim#layers#load('lsp',
\ {
\ 'override_cmd' : {
\ 'rust' : ['rustup', 'run', 'nightly', 'rls'],
\ }
\ }
```
## Key bindings
| Key Binding | Description |