1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:40:05 +08:00
SpaceVim/docs/layers/ui.md

62 lines
1.7 KiB
Markdown
Raw Normal View History

2017-11-05 16:02:13 +08:00
---
title: "SpaceVim ui layer"
2017-12-12 09:59:27 +08:00
description: "Awesome UI layer for SpaceVim, provide IDE-like UI for neovim and vim in both TUI and GUI"
2017-11-05 16:02:13 +08:00
---
2018-06-23 14:37:41 +08:00
# [Available Layers](../) >> ui
2017-11-05 16:02:13 +08:00
<!-- vim-markdown-toc GFM -->
- [Description](#description)
2018-06-23 14:37:41 +08:00
- [Install](#install)
2020-09-22 22:11:37 +08:00
- [Layer Options](#layer-options)
2017-11-05 16:02:13 +08:00
<!-- vim-markdown-toc -->
## Description
2021-09-08 10:35:38 +08:00
The `ui` layer defines the default interface for SpaceVim,
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 = []
2021-09-08 10:35:38 +08:00
```
2017-11-05 16:02:13 +08:00
2018-06-23 14:37:41 +08:00
## Install
To use this configuration layer, update custom configuration file with:
```toml
[[layers]]
name = "ui"
```
2017-11-05 16:02:13 +08:00
2020-09-22 22:11:37 +08:00
## Layer Options
2021-09-08 10:35:38 +08:00
- `enable_sidebar`: Enable/disable sidebar.
- `enable_scrollbar`: Enable/disable floating scrollbar of current buffer.
Disabled by default. This feature requires neovim's floating window.
- `enable_indentline`: Enable/disable indentline of current buffer.
Enabled by default.
- `enable_cursorword`: Enable/disable cursorword highlighting.
Disabled by default.
- `indentline_char`: Set the character of indentline.
- `conceallevel`: set the conceallevel option.
- `concealcursor`: set the concealcursor option.
- `cursorword_delay`: The delay duration in milliseconds for setting the
word highlight after cursor motions, the default is 50.
- `cursorword_exclude_filetypes`: Ignore filetypes when enable cursorword
highlighting.
- `indentline_exclude_filetype`: Ignore filetypes when enable indentline.