mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:20:06 +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)
|
||||
- [Features](#features)
|
||||
- [Install](#install)
|
||||
- [Install language server](#install-language-server)
|
||||
- [Configuration](#configuration)
|
||||
- [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.
|
||||
|
||||
### Install language server
|
||||
|
||||
**JavaScript:**
|
||||
|
||||
```sh
|
||||
npm install -g javascript-typescript-langserver
|
||||
```
|
||||
|
||||
**Python:**
|
||||
|
||||
```sh
|
||||
pip install --user python-language-server
|
||||
```
|
||||
|
||||
|
||||
## Configuration
|
||||
|
||||
To enable lsp support for a specified filetype, you may need to load this layer with `filtypes` option, for example:
|
||||
|
Loading…
Reference in New Issue
Block a user