mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-22 08:45:42 +08:00
Add doc for installing language servers
This commit is contained in:
parent
e88eb9ef9f
commit
2e45e0f06c
@ -10,6 +10,7 @@ description: "This layers provides language server protocol for vim and neovim"
|
|||||||
- [Description](#description)
|
- [Description](#description)
|
||||||
- [Features](#features)
|
- [Features](#features)
|
||||||
- [Install](#install)
|
- [Install](#install)
|
||||||
|
- [Install language server](#install-language-server)
|
||||||
- [Configuration](#configuration)
|
- [Configuration](#configuration)
|
||||||
- [Key bindings](#key-bindings)
|
- [Key bindings](#key-bindings)
|
||||||
|
|
||||||
@ -55,6 +56,21 @@ endif
|
|||||||
|
|
||||||
To use this configuration layer, add `call SpaceVim#layers#load('lsp')` to your custom configuration file.
|
To use this configuration layer, add `call SpaceVim#layers#load('lsp')` to your custom configuration file.
|
||||||
|
|
||||||
|
### Install language server
|
||||||
|
|
||||||
|
**JavaScript:**
|
||||||
|
|
||||||
|
```sh
|
||||||
|
npm install -g javascript-typescript-langserver
|
||||||
|
```
|
||||||
|
|
||||||
|
**Python:**
|
||||||
|
|
||||||
|
```sh
|
||||||
|
pip install --user python-language-server
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
To enable lsp support for a specified filetype, you may need to load this layer with `filtypes` option, for example:
|
To enable lsp support for a specified filetype, you may need to load this layer with `filtypes` option, for example:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user