1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 15:19:12 +08:00

doc(layer): add :h SpaceVim-layers-lang-zig

This commit is contained in:
Shidong Wang 2021-10-01 22:15:53 +08:00
parent bc0bc6e345
commit 879378000f
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
2 changed files with 79 additions and 10 deletions

View File

@ -5,10 +5,45 @@
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
scriptencoding utf-8
""
" @section lang#zig, layers-lang-zig
" @parentsection layers
" This layer is for zig language development, disabled by default,
" to enable this layer, add following snippet to your SpaceVim
" configuration file.
" >
" [[layers]]
" name = 'lang#zig'
" <
"
" @subsection layer option
"
" 1. `ztagsbin`: set the path of ztags, by default this option is `ztags`
"
" @subsection Key bindings
" >
" Mode Key Function
" ---------------------------------------------
" normal SPC l r run current file
" <
"
" This layer also provides REPL support for zig, the key bindings are:
" >
" Key Function
" ---------------------------------------------
" SPC l s i Start a inferior REPL process
" SPC l s b send whole buffer
" SPC l s l send current line
" SPC l s s send selection text
" <
"
if exists('s:ztagsbin')
finish
endif
let s:ztagsbin = 'ztags'
function! SpaceVim#layers#lang#zig#plugins() abort

View File

@ -184,16 +184,17 @@ CONTENTS *SpaceVim-contents*
98. lang#wolfram..........................|SpaceVim-layers-lang-wolfram|
99. lang#xml..................................|SpaceVim-layers-lang-xml|
100. lang#xquery...........................|SpaceVim-layers-lang-xquery|
101. language server protocol......................|SpaceVim-layers-lsp|
102. leaderf...................................|SpaceVim-layers-leaderf|
103. operator.................................|SpaceVim-layers-operator|
104. shell.......................................|SpaceVim-layers-shell|
105. test.........................................|SpaceVim-layers-test|
106. tmux.........................................|SpaceVim-layers-tmux|
107. tools#dash.............................|SpaceVim-layers-tools-dash|
108. tools#zeal.............................|SpaceVim-layers-tools-zeal|
109. ui.............................................|SpaceVim-layers-ui|
110. unite.......................................|SpaceVim-layers-unite|
101. lang#zig.................................|SpaceVim-layers-lang-zig|
102. language server protocol......................|SpaceVim-layers-lsp|
103. leaderf...................................|SpaceVim-layers-leaderf|
104. operator.................................|SpaceVim-layers-operator|
105. shell.......................................|SpaceVim-layers-shell|
106. test.........................................|SpaceVim-layers-test|
107. tmux.........................................|SpaceVim-layers-tmux|
108. tools#dash.............................|SpaceVim-layers-tools-dash|
109. tools#zeal.............................|SpaceVim-layers-tools-zeal|
110. ui.............................................|SpaceVim-layers-ui|
111. unite.......................................|SpaceVim-layers-unite|
7. Usage....................................................|SpaceVim-usage|
1. buffers-and-files..................|SpaceVim-usage-buffers-and-files|
2. custom_plugins........................|SpaceVim-usage-custom_plugins|
@ -4238,6 +4239,39 @@ disabled by default, to enable this layer, add following snippet to your
name = 'lang#xquery'
<
==============================================================================
LANG#ZIG *SpaceVim-layers-lang-zig*
This layer is for zig language development, disabled by default, to enable
this layer, add following snippet to your SpaceVim configuration file.
>
[[layers]]
name = 'lang#zig'
<
LAYER OPTION
1. `ztagsbin`: set the path of ztags, by default this option is `ztags`
KEY BINDINGS
>
Mode Key Function
---------------------------------------------
normal SPC l r run current file
<
This layer also provides REPL support for zig, the key bindings are:
>
Key Function
---------------------------------------------
SPC l s i Start a inferior REPL process
SPC l s b send whole buffer
SPC l s l send current line
SPC l s s send selection text
<
==============================================================================
LANGUAGE SERVER PROTOCOL *SpaceVim-layers-lsp*