From 4b617500ec5bf1f4b7d45df1472370109021d28e Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Fri, 22 Apr 2022 11:53:22 +0800 Subject: [PATCH] docs(scrollbar): add doc about scrollbar --- docs/cn/layers/ui.md | 20 ++++++++++---------- docs/documentation.md | 12 ++++++++++++ docs/layers/ui.md | 20 ++++++++++---------- 3 files changed, 32 insertions(+), 20 deletions(-) diff --git a/docs/cn/layers/ui.md b/docs/cn/layers/ui.md index fb285151c..3d93ad5fc 100644 --- a/docs/cn/layers/ui.md +++ b/docs/cn/layers/ui.md @@ -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 = [] ``` ## 启用模块 diff --git a/docs/documentation.md b/docs/documentation.md index ee535e01e..42dbb6313 100644 --- a/docs/documentation.md +++ b/docs/documentation.md @@ -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): diff --git a/docs/layers/ui.md b/docs/layers/ui.md index efc750ee6..9dcc411c5 100644 --- a/docs/layers/ui.md +++ b/docs/layers/ui.md @@ -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