mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:50:06 +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:
parent
a2ee3119b5
commit
885bc3863e
@ -12,7 +12,7 @@
|
||||
" This layer provides syntax highlighting for agda. To enable this
|
||||
" layer:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#agda"
|
||||
" <
|
||||
"
|
||||
|
@ -12,7 +12,7 @@
|
||||
" This layer provides syntax highlighting for asciidoc. To enable this
|
||||
" layer:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#asciidoc"
|
||||
" <
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
" This layer provides syntax highlighting for aspectj. To enable this
|
||||
" layer:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#aspectj"
|
||||
" <
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
" This layer provides syntax highlighting for assembly. To enable this
|
||||
" layer:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#assembly"
|
||||
" <
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
" This layer provides syntax highlighting for autohotkey. To enable this
|
||||
" layer:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#autohotkey"
|
||||
" <
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
" This layer provides syntax highlighting for autoit. To enable this
|
||||
" layer:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#autoit"
|
||||
" <
|
||||
"
|
||||
|
@ -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"
|
||||
" <
|
||||
"
|
||||
|
@ -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"
|
||||
" <
|
||||
"
|
||||
|
@ -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"
|
||||
" <
|
||||
"
|
||||
|
@ -16,7 +16,7 @@
|
||||
" syntax checker which is loaded in @section(layer-checkers). To enable this
|
||||
" layer:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#dart"
|
||||
" <
|
||||
"
|
||||
|
@ -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"
|
||||
" <
|
||||
|
||||
|
@ -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',
|
||||
|
@ -14,7 +14,7 @@
|
||||
" The lang#graphql layer provides syntax highlighting indent for graphql. To
|
||||
" enable this layer:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#graphql"
|
||||
" <
|
||||
"
|
||||
|
@ -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']
|
||||
|
@ -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
|
||||
" <
|
||||
|
@ -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 = ''
|
||||
|
@ -12,7 +12,7 @@
|
||||
" This layer provides syntax highlighting for liquid. To enable this
|
||||
" layer:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#liquid"
|
||||
" <
|
||||
|
||||
|
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -20,7 +20,7 @@
|
||||
"
|
||||
" 1. ring_repl: Set the path of ring repl.
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#ring"
|
||||
" ring_repl = "/path/to/repl.ring"
|
||||
" <
|
||||
|
@ -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',
|
||||
|
@ -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
|
||||
|
@ -12,7 +12,7 @@
|
||||
" This layer is for swig development, including syntax highlighting and
|
||||
" indent. To enable it:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#swig"
|
||||
" <
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
" @parentsection layers
|
||||
" This layer provides basic syntax highlighting for toml. To enable it:
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = "lang#toml"
|
||||
" <
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
" To enable this layer, add following snippet into SpaceVim configuration
|
||||
" file.
|
||||
" >
|
||||
" [layers]
|
||||
" [[layers]]
|
||||
" name = 'lang#typescript'
|
||||
" <
|
||||
" @subsection key bindings
|
||||
|
@ -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
|
||||
|
@ -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']
|
||||
|
Loading…
Reference in New Issue
Block a user