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

Update lua layer doc

This commit is contained in:
Shidong Wang 2019-06-21 19:50:05 +08:00
parent 1457e977f2
commit 1f9a845f16
2 changed files with 36 additions and 4 deletions

View File

@ -10,13 +10,29 @@
" @section lang#lua, layer-lang-lua " @section lang#lua, layer-lang-lua
" @parentsection layers " @parentsection layers
" This layer includes utilities and language-specific mappings for lua development. " This layer includes utilities and language-specific mappings for lua development.
" >
" [[layers]]
" name = 'lang#lua'
" <
" "
" @subsection Mappings " @subsection Key bindings
" > " >
" Mode Key Function " Mode Key Function
" --------------------------------------------- " ---------------------------------------------
" normal SPC l r lua run " normal SPC l r run current script
" normal SPC l b compile current file
" < " <
"
" This layer also provides REPL support for lua, 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
" <
"
function! SpaceVim#layers#lang#lua#plugins() abort function! SpaceVim#layers#lang#lua#plugins() abort
let plugins = [] let plugins = []

View File

@ -1530,15 +1530,31 @@ LANG#LUA *SpaceVim-layer-lang-lua*
This layer includes utilities and language-specific mappings for lua This layer includes utilities and language-specific mappings for lua
development. development.
>
[[layers]]
name = 'lang#lua'
<
MAPPINGS KEY BINDINGS
> >
Mode Key Function Mode Key Function
--------------------------------------------- ---------------------------------------------
normal SPC l r lua run normal SPC l r run current script
normal SPC l b compile current file
< <
This layer also provides REPL support for lua, 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
<
============================================================================== ==============================================================================
LANG#NIM *SpaceVim-layer-lang-nim* LANG#NIM *SpaceVim-layer-lang-nim*