![](https://img.haomeiwen.com/i3113589/3e0d4683aa67996c.png)
平台:arch linux
- 安装nerd fonts字体
- 设置配置文件
- 添加插件"ryanoasis/vim-devicons"
首先要有nerd fonts字体
spacevim在安装时,会顺带下载nerd font字体
也可以自己安装,使用"yay nerd-fonts"就可以找到相关字体
然后设置一下spacevim的配置文件,美化一下:
(主要是将一些选项设置为true,并设置皮肤为onedark)
[options]
# set spacevim theme. by default colorscheme layer is not loaded,
# if you want to use more colorscheme, please load the colorscheme
# layer
colorscheme = "onedark"
colorscheme_bg = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit
# true colors
enable_guicolors = true
# Disable statusline separator, if you want to use other value, please
# install nerd fonts
statusline_separator = "arrow"
statusline_iseparator = "bar"
buffer_index_type = 4
windows_index_type = 3
enable_tabline_filetype_icon = true
enable_statusline_mode = true
statusline_unicode = true
# Enable vim compatible mode, avoid changing origin vim key bindings
vimcompatible = true
# filemanager = "defx"
[[layers]]
name = 'colorscheme'
最后添加一个插件,用来显示文件类型图标。
在spacevim的配置文件中添加:
[[custom_plugins]]
repo = "ryanoasis/vim-devicons"
merged = false
网友评论