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

docs(scrollbar): add doc about scrollbar

This commit is contained in:
wsdjeg 2022-04-22 11:53:22 +08:00
parent 8f1f93350e
commit 4b617500ec
3 changed files with 32 additions and 20 deletions

View File

@ -22,16 +22,16 @@ lang: zh
```toml
[[layers]]
name = "ui"
enable_sidebar = false
enable_scrollbar = false
enable_indentline = true
enable_cursorword = false
indentline_char = '|'
conceallevel = 0
concealcursor = ''
cursorword_delay = 50
cursorword_exclude_filetype = []
indentline_exclude_filetype = []
enable_sidebar = false
enable_scrollbar = false
enable_indentline = true
enable_cursorword = false
indentline_char = '|'
conceallevel = 0
concealcursor = ''
cursorword_delay = 50
cursorword_exclude_filetype = []
indentline_exclude_filetype = []
```
## 启用模块

View File

@ -26,6 +26,7 @@ description: "General documentation about how to use SpaceVim, including the qui
- [Colorschemes](#colorschemes)
- [Font](#font)
- [Mouse](#mouse)
- [Scrollbar](#scrollbar)
- [UI Toggles](#ui-toggles)
- [Statusline](#statusline)
- [Tabline](#tabline)
@ -570,6 +571,17 @@ endfunction
Read `:h 'mouse'` for more info.
### Scrollbar
The scrollbar is disabled by default. To enable the scrollbar,
you need to change `enable_scrollbar` option in [ui layer](../layers/ui/).
```
[[layers]]
name = "ui"
enable_scrollbar = true
```
### UI Toggles
Some UI indicators can be toggled on and off (toggles start with t and T):

View File

@ -21,16 +21,16 @@ and this layer is enabled by default with following options:
```toml
[[layers]]
name = "ui"
enable_sidebar = false
enable_scrollbar = false
enable_indentline = true
enable_cursorword = false
indentline_char = '|'
conceallevel = 0
concealcursor = ''
cursorword_delay = 50
cursorword_exclude_filetype = []
indentline_exclude_filetype = []
enable_sidebar = false
enable_scrollbar = false
enable_indentline = true
enable_cursorword = false
indentline_char = '|'
conceallevel = 0
concealcursor = ''
cursorword_delay = 50
cursorword_exclude_filetype = []
indentline_exclude_filetype = []
```
## Install