1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-03-12 17:55:41 +08:00

docs(lsp): update :h SpaceVim-layers-lsp

This commit is contained in:
Shidong Wang 2021-10-15 10:10:55 +08:00
parent eae76b845b
commit d4e4fc27da
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
2 changed files with 51 additions and 1 deletions

View File

@ -14,6 +14,31 @@ endif
" @section language server protocol, layers-lsp
" @parentsection layers
" This layer provides language client support for SpaceVim.
" By default, this layer is not loaded. You need to enable this layer with
" specific clients, for example:
" >
" [[layers]]
" name = 'lsp'
" enabled_clients = ['vimls']
" <
"
" @subsection layer options
"
" The following options can be used with this layer:
"
" 1. `enabled_clients`: set the enabled servers. This options only for
" neovim 0.5.0+.
" 2. `override_cmd`: If you are not using neovim 0.5.0+, use this option to
" set default lsp command.
"
" @subsection LSP servers
"
" The default LSP servers are:
" >
" name Discriptions
" ---------------------------------------------------
" vimls vim-language-server
" <
let s:NVIM_VERSION = SpaceVim#api#import('neovim#version')
let s:enabled_clients = []

View File

@ -4451,7 +4451,32 @@ This layer also provides REPL support for zig, the key bindings are:
==============================================================================
LANGUAGE SERVER PROTOCOL *SpaceVim-layers-lsp*
This layer provides language client support for SpaceVim.
This layer provides language client support for SpaceVim. By default, this
layer is not loaded. You need to enable this layer with specific clients, for
example:
>
[[layers]]
name = 'lsp'
enabled_clients = ['vimls']
<
LAYER OPTIONS
The following options can be used with this layer:
1. `enabled_clients`: set the enabled servers. This options only for
neovim 0.5.0+.
2. `override_cmd`: If you are not using neovim 0.5.0+, use this option to
set default lsp command.
LSP SERVERS
The default LSP servers are:
>
name Discriptions
---------------------------------------------------
vimls vim-language-server
<
==============================================================================
LEADERF *SpaceVim-layers-leaderf*