mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:30:04 +08:00
Update javascipt layer documentation to show toml config examples
This commit is contained in:
parent
9e4bed4961
commit
b1d5dc06ae
@ -27,7 +27,7 @@ To use this configuration layer, update custom configuration file with:
|
|||||||
|
|
||||||
```toml
|
```toml
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = "lang#javascript"
|
name = "lang#javascript"
|
||||||
```
|
```
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
@ -39,26 +39,16 @@ To use this configuration layer, update custom configuration file with:
|
|||||||
|
|
||||||
## Layer configuration
|
## Layer configuration
|
||||||
|
|
||||||
`auto_fix`: auto fix problems when save files, disabled by default. If you need this feature, you can load this layer via:
|
`auto_fix`: auto fix problems when saving files, disabled by default.
|
||||||
|
|
||||||
```vim
|
`enable_flow_syntax`: Enable configuration for [flow](https://flow.org/), disabled by default.
|
||||||
call SpaceVim#layers#load('lang#javascript',
|
|
||||||
\ {
|
|
||||||
\ 'auto_fix' : 1,
|
|
||||||
\ }
|
|
||||||
\ )
|
|
||||||
|
|
||||||
```
|
|
||||||
|
|
||||||
`enable_flow_syntax`: Enable configuration for [flow](https://flow.org/), disabled by default. If you need this feature, you can load this layer via:
|
|
||||||
|
|
||||||
```vim
|
|
||||||
call SpaceVim#layers#load('lang#javascript',
|
|
||||||
\ {
|
|
||||||
\ 'enable_flow_syntax' : 1,
|
|
||||||
\ }
|
|
||||||
\ )
|
|
||||||
|
|
||||||
|
If you need these features, you can enable them in the layer config:
|
||||||
|
```toml
|
||||||
|
[[layers]]
|
||||||
|
name = "lang#javascript"
|
||||||
|
auto_fix = true
|
||||||
|
enable_flow_syntax = true
|
||||||
```
|
```
|
||||||
|
|
||||||
## Key bindings
|
## Key bindings
|
||||||
|
Loading…
Reference in New Issue
Block a user