mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-13 12:39:09 +08:00
Add lsp doc
This commit is contained in:
parent
7e900d2062
commit
752a3b3ba8
50
docs/layers/language-server-protocol.md
Normal file
50
docs/layers/language-server-protocol.md
Normal file
@ -0,0 +1,50 @@
|
||||
---
|
||||
title: "SpaceVim language server protocol layer"
|
||||
description: "This layers provides language server protocol for vim and neovim"
|
||||
---
|
||||
|
||||
# [SpaceVim Layers:](https://spacevim.org/layers) lsp
|
||||
|
||||
<!-- vim-markdown-toc GFM -->
|
||||
|
||||
- [Description](#description)
|
||||
- [Features](#features)
|
||||
- [Install](#install)
|
||||
- [Configuration](#configuration)
|
||||
- [Key bindings](#key-bindings)
|
||||
|
||||
<!-- vim-markdown-toc -->
|
||||
|
||||
## Description
|
||||
|
||||
This layers adds extensive support for [language-server-protocol](https://microsoft.github.io/language-server-protocol/)
|
||||
|
||||
## Features
|
||||
|
||||
## Install
|
||||
|
||||
To use this configuration layer, add `call SpaceVim#layers#load('lsp')` to your custom configuration file.
|
||||
|
||||
## Configuration
|
||||
|
||||
To enable lsp support for a specified filetype, you may need to load this layer with `filtypes` option, for example:
|
||||
|
||||
```vim
|
||||
call SpaceVim#layers#load('lsp',
|
||||
\ {
|
||||
\ 'filetypes' : ['rust',
|
||||
\ 'typescript',
|
||||
\ 'javascript',
|
||||
\ ],
|
||||
\ }
|
||||
```
|
||||
|
||||
## Key bindings
|
||||
|
||||
| Key Binding | Description |
|
||||
| -------------- | ---------------------- |
|
||||
| `<Leader> g a` | git add current file |
|
||||
| `<Leader> g A` | git add All files |
|
||||
| `<Leader> g b` | open git blame window |
|
||||
| `<Leader> g s` | open git status window |
|
||||
| `<Leader> g c` | open git commit window |
|
Loading…
x
Reference in New Issue
Block a user