1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 20:20:05 +08:00

docs(layers): fix layers configuration snippet

close https://github.com/SpaceVim/SpaceVim/pull/4751

Co-authored-by: Ricardo Martincoski <ricardo.martincoski@gmail.com>
This commit is contained in:
wsdjeg 2022-11-14 21:18:41 +08:00
parent a2ee3119b5
commit 885bc3863e
27 changed files with 57 additions and 57 deletions

View File

@ -12,7 +12,7 @@
" This layer provides syntax highlighting for agda. To enable this
" layer:
" >
" [layers]
" [[layers]]
" name = "lang#agda"
" <
"

View File

@ -12,7 +12,7 @@
" This layer provides syntax highlighting for asciidoc. To enable this
" layer:
" >
" [layers]
" [[layers]]
" name = "lang#asciidoc"
" <

View File

@ -12,7 +12,7 @@
" This layer provides syntax highlighting for aspectj. To enable this
" layer:
" >
" [layers]
" [[layers]]
" name = "lang#aspectj"
" <

View File

@ -12,7 +12,7 @@
" This layer provides syntax highlighting for assembly. To enable this
" layer:
" >
" [layers]
" [[layers]]
" name = "lang#assembly"
" <

View File

@ -12,7 +12,7 @@
" This layer provides syntax highlighting for autohotkey. To enable this
" layer:
" >
" [layers]
" [[layers]]
" name = "lang#autohotkey"
" <

View File

@ -12,7 +12,7 @@
" This layer provides syntax highlighting for autoit. To enable this
" layer:
" >
" [layers]
" [[layers]]
" name = "lang#autoit"
" <
"

View File

@ -13,7 +13,7 @@
" highlighting, code indent, code runner and REPL. This layer is not enabled
" by default, To enable this layer:
" >
" [layers]
" [[layers]]
" name = "lang#clojure"
" <
"

View File

@ -14,7 +14,7 @@
" The lang#crystal layer provides crystal filetype detection and syntax highlight,
" crystal tool and crystal spec integration. To enable this layer:
" >
" [layers]
" [[layers]]
" name = "lang#crystal"
" <
"

View File

@ -14,7 +14,7 @@
" This layer includes utilities and language-specific mappings for csharp development.
" By default it is disabled, to enable this layer:
" >
" [layers]
" [[layers]]
" name = "lang#csharp"
" <
"

View File

@ -16,7 +16,7 @@
" syntax checker which is loaded in @section(layer-checkers). To enable this
" layer:
" >
" [layers]
" [[layers]]
" name = "lang#dart"
" <
"

View File

@ -14,7 +14,7 @@
" This layer includes utilities and language-specific mappings for e development.
" By default it is disabled, to enable this layer:
" >
" [layers]
" [[layers]]
" name = "lang#e"
" <

View File

@ -21,7 +21,7 @@
" `gometalinter`
" 2. go_file_head: the default file head for golang source code.
" >
" [layers]
" [[layers]]
" name = "lang#go"
" go_file_head = [
" '#!/usr/bin/python3',

View File

@ -14,7 +14,7 @@
" The lang#graphql layer provides syntax highlighting indent for graphql. To
" enable this layer:
" >
" [layers]
" [[layers]]
" name = "lang#graphql"
" <
"

View File

@ -12,7 +12,7 @@
" This layer is for html development, disabled by default, to enable this
" layer, add following snippet to your SpaceVim configuration file.
" >
" [layers]
" [[layers]]
" name = "lang#html"
" <
"
@ -21,7 +21,7 @@
" - `emmet_leader_key`: change the default leader key for emmet
" - `emmet_filetyps`: Set the filetypes for enabling emmet
" >
" [layers]
" [[layers]]
" name = "lang#html"
" emmet_leader_key = "<C-e>"
" emmet_filetyps = ['html']

View File

@ -12,7 +12,7 @@
" This layer is for JavaScript development, includes syntax lint, code
" completion etc. To enable this layer:
" >
" [layers]
" [[layers]]
" name = "lang#javascript"
" <
" The code linter is eslint, install eslint via:
@ -24,7 +24,7 @@
" 1. auto_fix: If this option is true, --fix will be added to neomake eslint
" maker.
" >
" [layers]
" [[layers]]
" name = "lang#javascript"
" auto_fix = true
" <

View File

@ -11,7 +11,7 @@
" @parentsection layers
" This layer provides syntax highlighting for json file. To enable this layer:
" >
" [layers]
" [[layers]]
" name = "lang#json"
" <
"
@ -22,7 +22,7 @@
" 2. concealcursor: Set the valuable for |g:vim_json_syntax_concealcursor|
"
" >
" [layers]
" [[layers]]
" name = 'lang#json'
" conceal = false
" concealcursor = ''

View File

@ -12,7 +12,7 @@
" This layer provides syntax highlighting for liquid. To enable this
" layer:
" >
" [layers]
" [[layers]]
" name = "lang#liquid"
" <

View File

@ -19,7 +19,7 @@
"
" 1. lua_file_head: the default file head for lua source code.
" >
" [layers]
" [[layers]]
" name = "lang#lua"
" ruby_file_head = [
" '--!/usr/bin/lua',

View File

@ -22,7 +22,7 @@
"
" 1. python_file_head: the default file head for python source code.
" >
" [layers]
" [[layers]]
" name = "lang#python"
" python_file_head = [
" '#!/usr/bin/python3',

View File

@ -20,7 +20,7 @@
"
" 1. ring_repl: Set the path of ring repl.
" >
" [layers]
" [[layers]]
" name = "lang#ring"
" ring_repl = "/path/to/repl.ring"
" <

View File

@ -20,7 +20,7 @@
"
" 1. ruby_file_head: the default file head for ruby source code.
" >
" [layers]
" [[layers]]
" name = "lang#ruby"
" ruby_file_head = [
" '#!/usr/bin/ruby -w',

View File

@ -12,7 +12,7 @@
" This layer is for swift development, including syntax highlighting and
" indent. To enable it:
" >
" [layers]
" [[layers]]
" name = "lang#swift"
" <
" @subsection Mappings

View File

@ -12,7 +12,7 @@
" This layer is for swig development, including syntax highlighting and
" indent. To enable it:
" >
" [layers]
" [[layers]]
" name = "lang#swig"
" <

View File

@ -11,7 +11,7 @@
" @parentsection layers
" This layer provides basic syntax highlighting for toml. To enable it:
" >
" [layers]
" [[layers]]
" name = "lang#toml"
" <

View File

@ -13,7 +13,7 @@
" To enable this layer, add following snippet into SpaceVim configuration
" file.
" >
" [layers]
" [[layers]]
" name = 'lang#typescript'
" <
" @subsection key bindings

View File

@ -2313,7 +2313,7 @@ LANG#AGDA *SpaceVim-layers-lang-agda*
This layer provides syntax highlighting for agda. To enable this layer:
>
[layers]
[[layers]]
name = "lang#agda"
<
@ -2347,7 +2347,7 @@ LANG#ASCIIDOC *SpaceVim-layers-lang-asciidoc*
This layer provides syntax highlighting for asciidoc. To enable this layer:
>
[layers]
[[layers]]
name = "lang#asciidoc"
<
@ -2356,7 +2356,7 @@ LANG#ASPECTJ *SpaceVim-layers-lang-aspectj*
This layer provides syntax highlighting for aspectj. To enable this layer:
>
[layers]
[[layers]]
name = "lang#aspectj"
<
@ -2365,7 +2365,7 @@ LANG#ASSEMBLY *SpaceVim-layers-lang-assembly*
This layer provides syntax highlighting for assembly. To enable this layer:
>
[layers]
[[layers]]
name = "lang#assembly"
<
@ -2374,7 +2374,7 @@ LANG#AUTOHOTKEY *SpaceVim-layers-lang-autohotkey*
This layer provides syntax highlighting for autohotkey. To enable this layer:
>
[layers]
[[layers]]
name = "lang#autohotkey"
<
@ -2383,7 +2383,7 @@ LANG#AUTOIT *SpaceVim-layers-lang-autoit*
This layer provides syntax highlighting for autoit. To enable this layer:
>
[layers]
[[layers]]
name = "lang#autoit"
<
@ -2546,7 +2546,7 @@ This layer provides clojure language support in SpaceVim. Including syntax
highlighting, code indent, code runner and REPL. This layer is not enabled by
default, To enable this layer:
>
[layers]
[[layers]]
name = "lang#clojure"
<
@ -2626,7 +2626,7 @@ INTRO
The lang#crystal layer provides crystal filetype detection and syntax
highlight, crystal tool and crystal spec integration. To enable this layer:
>
[layers]
[[layers]]
name = "lang#crystal"
<
@ -2656,7 +2656,7 @@ INTRO
This layer includes utilities and language-specific mappings for csharp
development. By default it is disabled, to enable this layer:
>
[layers]
[[layers]]
name = "lang#csharp"
<
@ -2718,7 +2718,7 @@ The lang#dart layer provides code completion, documentation lookup, jump to
definition, dart_repl integration for dart. It uses neomake as default syntax
checker which is loaded in |SpaceVim-layer-checkers|. To enable this layer:
>
[layers]
[[layers]]
name = "lang#dart"
<
@ -2769,7 +2769,7 @@ INTRO
This layer includes utilities and language-specific mappings for e
development. By default it is disabled, to enable this layer:
>
[layers]
[[layers]]
name = "lang#e"
<
@ -3025,7 +3025,7 @@ option is `['golint']`. The available linters includes: `go`, `gometalinter`
2. go_file_head: the default file head for golang source code.
>
[layers]
[[layers]]
name = "lang#go"
go_file_head = [
'#!/usr/bin/python3',
@ -3145,7 +3145,7 @@ INTRO
The lang#graphql layer provides syntax highlighting indent for graphql. To
enable this layer:
>
[layers]
[[layers]]
name = "lang#graphql"
<
@ -3293,7 +3293,7 @@ LANG#HTML *SpaceVim-layers-lang-html*
This layer is for html development, disabled by default, to enable this layer,
add following snippet to your SpaceVim configuration file.
>
[layers]
[[layers]]
name = "lang#html"
<
@ -3303,7 +3303,7 @@ OPTIONS
`emmet_filetyps`: Set the filetypes for enabling emmet
>
[layers]
[[layers]]
name = "lang#html"
emmet_leader_key = "<C-e>"
emmet_filetyps = ['html']
@ -3587,7 +3587,7 @@ LANG#JAVASCRIPT *SpaceVim-layers-lang-javascript*
This layer is for JavaScript development, includes syntax lint, code
completion etc. To enable this layer:
>
[layers]
[[layers]]
name = "lang#javascript"
<
The code linter is eslint, install eslint via:
@ -3599,7 +3599,7 @@ LAYER OPTION
1. auto_fix: If this option is true, --fix will be added to neomake eslint
maker.
>
[layers]
[[layers]]
name = "lang#javascript"
auto_fix = true
<
@ -3655,7 +3655,7 @@ LANG#JSON *SpaceVim-layers-lang-json*
This layer provides syntax highlighting for json file. To enable this layer:
>
[layers]
[[layers]]
name = "lang#json"
<
@ -3667,7 +3667,7 @@ OPTIONS
>
[layers]
[[layers]]
name = 'lang#json'
conceal = false
concealcursor = ''
@ -3803,7 +3803,7 @@ LANG#LIQUID *SpaceVim-layers-lang-liquid*
This layer provides syntax highlighting for liquid. To enable this layer:
>
[layers]
[[layers]]
name = "lang#liquid"
<
@ -3880,7 +3880,7 @@ LAYER OPTIONS
1. lua_file_head: the default file head for lua source code.
>
[layers]
[[layers]]
name = "lang#lua"
ruby_file_head = [
'--!/usr/bin/lua',
@ -4386,7 +4386,7 @@ OPTIONS
1. python_file_head: the default file head for python source code.
>
[layers]
[[layers]]
name = "lang#python"
python_file_head = [
'#!/usr/bin/python3',
@ -4558,7 +4558,7 @@ OPTIONS
1. ring_repl: Set the path of ring repl.
>
[layers]
[[layers]]
name = "lang#ring"
ring_repl = "/path/to/repl.ring"
<
@ -4598,7 +4598,7 @@ OPTIONS
1. ruby_file_head: the default file head for ruby source code.
>
[layers]
[[layers]]
name = "lang#ruby"
ruby_file_head = [
'#!/usr/bin/ruby -w',
@ -5003,7 +5003,7 @@ LANG#SWIG *SpaceVim-layers-lang-swift*
This layer is for swift development, including syntax highlighting and indent.
To enable it:
>
[layers]
[[layers]]
name = "lang#swift"
<
MAPPINGS
@ -5031,7 +5031,7 @@ LANG#SWIG *SpaceVim-layers-lang-swig*
This layer is for swig development, including syntax highlighting and indent.
To enable it:
>
[layers]
[[layers]]
name = "lang#swig"
<
@ -5108,7 +5108,7 @@ LANG#TOML *SpaceVim-layers-lang-toml*
This layer provides basic syntax highlighting for toml. To enable it:
>
[layers]
[[layers]]
name = "lang#toml"
<
@ -5118,7 +5118,7 @@ LANG#TYPESCRIPT *SpaceVim-layers-lang-typescript*
This layer provides typescript development support for SpaceVim. To enable
this layer, add following snippet into SpaceVim configuration file.
>
[layers]
[[layers]]
name = 'lang#typescript'
<
KEY BINDINGS

View File

@ -44,7 +44,7 @@ npm install --global vscode-html-languageserver-bin
- `emmet_filetyps`:设置启用 emmet 插件的文件类型列表。
```toml
[layers]
[[layers]]
name = "lang#html"
emmet_leader_key = "<C-e>"
emmet_filetyps = ['html']