mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-14 02:35:41 +08:00
docs(lsp): update :h SpaceVim-layers-lsp
This commit is contained in:
parent
eae76b845b
commit
d4e4fc27da
@ -14,6 +14,31 @@ endif
|
|||||||
" @section language server protocol, layers-lsp
|
" @section language server protocol, layers-lsp
|
||||||
" @parentsection layers
|
" @parentsection layers
|
||||||
" 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']
|
||||||
|
" <
|
||||||
|
"
|
||||||
|
" @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:NVIM_VERSION = SpaceVim#api#import('neovim#version')
|
||||||
let s:enabled_clients = []
|
let s:enabled_clients = []
|
||||||
|
@ -4451,7 +4451,32 @@ This layer also provides REPL support for zig, the key bindings are:
|
|||||||
==============================================================================
|
==============================================================================
|
||||||
LANGUAGE SERVER PROTOCOL *SpaceVim-layers-lsp*
|
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*
|
LEADERF *SpaceVim-layers-leaderf*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user