1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 17:40:06 +08:00

Update javascipt layer documentation to show toml config examples

This commit is contained in:
Bram 2018-06-27 12:18:11 +02:00 committed by GitHub
parent 9e4bed4961
commit b1d5dc06ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,7 +27,7 @@ To use this configuration layer, update custom configuration file with:
```toml
[[layers]]
name = "lang#javascript"
name = "lang#javascript"
```
## Features
@ -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