1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-09 12:30:05 +08:00
SpaceVim/docs/layers/ui.md

62 lines
1.4 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
- [Plugins](#plugins)
2019-05-06 11:55:24 +08:00
- [Tips](#tips)
2017-11-05 16:02:13 +08:00
<!-- vim-markdown-toc -->
## Description
This is UI layer for SpaceVim, and it is loaded by default.
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
- `enable_scrollbar`: Enable/disable floating scrollbar of current buffer. Disabled by default.
This feature requires neovim's floating window.
2017-11-05 16:02:13 +08:00
## Plugins
2018-09-12 20:14:20 +08:00
- [startify](https://github.com/mhinz/vim-startify): welcome page, default key binding is `SPC a s`.
- [tagbar](https://github.com/majutsushi/tagbar): outline sidebar, default key binding is `<F2>`.
- [indentLine](https://github.com/Yggdroot/indentLine): code indent line, toggle key binding is `SPC t i`.
## Tips
SpaceVim provide default statusline and tabline plugin which are provided by `core#statusline` and `core#tabline` layer, If you want to use airline, just disable that layer:
```toml
[[layers]]
name = "core#statusline"
enable = false
```
2017-11-05 16:02:13 +08:00
2019-05-06 11:55:24 +08:00
Use sidebar to manager file tree and outline:
```toml
[[layers]]
name = "ui"
enable_sidebar = true
```