mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 22:40:04 +08:00
Update javascipt layer documentation to show toml config examples
This commit is contained in:
parent
9e4bed4961
commit
b1d5dc06ae
@ -39,26 +39,16 @@ To use this configuration layer, update custom configuration file with:
|
||||
|
||||
## 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
|
||||
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,
|
||||
\ }
|
||||
\ )
|
||||
`enable_flow_syntax`: Enable configuration for [flow](https://flow.org/), disabled by default.
|
||||
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user