1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:40:03 +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 ```toml
[[layers]] [[layers]]
name = "ui" name = "ui"
enable_sidebar = false enable_sidebar = false
enable_scrollbar = false enable_scrollbar = false
enable_indentline = true enable_indentline = true
enable_cursorword = false enable_cursorword = false
indentline_char = '|' indentline_char = '|'
conceallevel = 0 conceallevel = 0
concealcursor = '' concealcursor = ''
cursorword_delay = 50 cursorword_delay = 50
cursorword_exclude_filetype = [] cursorword_exclude_filetype = []
indentline_exclude_filetype = [] indentline_exclude_filetype = []
``` ```
## 启用模块 ## 启用模块

View File

@ -26,6 +26,7 @@ description: "General documentation about how to use SpaceVim, including the qui
- [Colorschemes](#colorschemes) - [Colorschemes](#colorschemes)
- [Font](#font) - [Font](#font)
- [Mouse](#mouse) - [Mouse](#mouse)
- [Scrollbar](#scrollbar)
- [UI Toggles](#ui-toggles) - [UI Toggles](#ui-toggles)
- [Statusline](#statusline) - [Statusline](#statusline)
- [Tabline](#tabline) - [Tabline](#tabline)
@ -570,6 +571,17 @@ endfunction
Read `:h 'mouse'` for more info. 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 ### UI Toggles
Some UI indicators can be toggled on and off (toggles start with t and T): 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 ```toml
[[layers]] [[layers]]
name = "ui" name = "ui"
enable_sidebar = false enable_sidebar = false
enable_scrollbar = false enable_scrollbar = false
enable_indentline = true enable_indentline = true
enable_cursorword = false enable_cursorword = false
indentline_char = '|' indentline_char = '|'
conceallevel = 0 conceallevel = 0
concealcursor = '' concealcursor = ''
cursorword_delay = 50 cursorword_delay = 50
cursorword_exclude_filetype = [] cursorword_exclude_filetype = []
indentline_exclude_filetype = [] indentline_exclude_filetype = []
``` ```
## Install ## Install