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:
parent
c8c9d6688a
commit
816e64c53e
@ -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 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user