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

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

This commit is contained in:
Shidong Wang 2021-10-23 15:03:05 +08:00
parent 04e4b3d121
commit abbc14e100
No known key found for this signature in database
GPG Key ID: 41BB7053E835C848
2 changed files with 14 additions and 8 deletions

View File

@ -9,11 +9,14 @@
""
" @section format, layers-format
" @parentsection layers
" format layer provides code formation for SpaceVim, the default formatting
" plugin is |neoformat|.
" @subsection options
" `format` layer provides code formation for SpaceVim, the default formatting
" plugin is `neoformat`, and you can also use `vim-codefmt`.
"
" `format_on_save`: disabled by default.
" @subsection layer options
"
" 1. `format_on_save`: disabled by default.
" 2. `format_method`: set the format plugin, default plugin is `neoformat`.
" You can also use `vim-codefmt`.
"
" @subsection key bindings
" >

View File

@ -1632,11 +1632,14 @@ Mappings:
==============================================================================
FORMAT *SpaceVim-layers-format*
format layer provides code formation for SpaceVim, the default formatting
plugin is |neoformat|.
OPTIONS
`format` layer provides code formation for SpaceVim, the default formatting
plugin is `neoformat`, and you can also use `vim-codefmt`.
`format_on_save`: disabled by default.
LAYER OPTIONS
1. `format_on_save`: disabled by default.
2. `format_method`: set the format plugin, default plugin is `neoformat`.
You can also use `vim-codefmt`.
KEY BINDINGS