mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:30:05 +08:00
docs(website): fix type in edit
layer page
This commit is contained in:
parent
53ec0d171f
commit
01934e0152
@ -31,24 +31,24 @@ This layer provides many edit key bindings for SpaceVim, and also provides more
|
|||||||
|
|
||||||
- `textobj`: specified a list of text objects to be enabled, the avaliable list is :`indent`, `line`, `entire`
|
- `textobj`: specified a list of text objects to be enabled, the avaliable list is :`indent`, `line`, `entire`
|
||||||
- `autosave_timeout`: set the timeoutlen of autosave plugin. By default it
|
- `autosave_timeout`: set the timeoutlen of autosave plugin. By default it
|
||||||
is 0. And autosave is disabled. timeoutlen must be given in millisecods and
|
is 0. And autosave is disabled. timeoutlen must be given in millisecods and
|
||||||
can't be > 100*60*1000 (100 minutes) or < 1000 (1 second). For example,
|
can't be > 100\*60\*1000 (100 minutes) or < 1000 (1 second). For example,
|
||||||
setup timer with 5 minutes:
|
setup timer with 5 minutes:
|
||||||
```
|
```
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = 'edit'
|
name = 'edit'
|
||||||
autosave_timeout = 300000
|
autosave_timeout = 300000
|
||||||
```
|
```
|
||||||
- `autosave_events`: set the events on which autosave will perform a save.
|
- `autosave_events`: set the events on which autosave will perform a save.
|
||||||
This option is an empty list by default. you can trigger saving based
|
This option is an empty list by default. you can trigger saving based
|
||||||
on vim's events, for example:
|
on vim's events, for example:
|
||||||
```
|
```
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = 'edit'
|
name = 'edit'
|
||||||
autosave_events = ['InsertLeave', 'TextChanged']
|
autosave_events = ['InsertLeave', 'TextChanged']
|
||||||
```
|
```
|
||||||
- `autosave_all_buffers`: By default autosave plugin only save current buffer.
|
- `autosave_all_buffers`: By default autosave plugin only save current buffer.
|
||||||
If you want to save all buffers automatically. Set this option to `true`.
|
If you want to save all buffers automatically. Set this option to `true`.
|
||||||
```
|
```
|
||||||
[[layers]]
|
[[layers]]
|
||||||
name = 'edit'
|
name = 'edit'
|
||||||
|
Loading…
Reference in New Issue
Block a user