配置Your SpaceVim

虽然但是官网的配置指南感觉不太靠谱

1. 主题配置

开启主题配置

1
2
[[layers]]
name = "colorscheme"

在optionol中添加下面的配置去配置你的主题,当然你可以在官网上看到更多的好看的主题
(请选择你的英雄)bushi

1
2
colorscheme = "nord"
colorscheme_bg = "dark"

2. 自动补齐

目前我能接收的暂时是用Spacevim写c/c++

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
autocomplete_method = "coc"

[[layers]]
name = "lang#c"

[[layers]]
name = 'lang#c'
enable_clang_syntax_highlight = true

[[layers]]
name = "lang#c"
[layer.clang_std]
cpp = "c11"

[[layers]]
name = 'autocomplete'
auto_completion_return_key_behavior = "complete"
auto_completion_tab_key_behavior = "smart"

[[layers]]
name = 'shell'
default_position = 'top'
default_height = 30

3. 编辑器设置

原生的spacevim比如它的tab和它的相对行让我感觉很不舒服

1
2
3
default_indent = 4
relativenumber = false
default_tab = false

The full config

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#=============================================================================
# dark_powered.toml --- dark powered configuration example for SpaceVim
# Copyright (c) 2016-2022 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg@outlook.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================

# All SpaceVim option below [option] section
[[layers]]
name = "colorscheme"

autocomplete_method = "coc"

[[layers]]
name = "lang#c"

[[layers]]
name = 'lang#c'
enable_clang_syntax_highlight = true

[[layers]]
name = "lang#c"
[layer.clang_std]
cpp = "c11"

[options]
# set spacevim theme. by default colorscheme layer is not loaded,
# if you want to use more colorscheme, please load the colorscheme
# layer
colorscheme = "nord"
colorscheme_bg = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit
# true colors
enable_guicolors = true
default_indent = 4
relativenumber = false
default_tab = false
# Disable statusline separator, if you want to use other value, please
# install nerd fonts
statusline_separator = "arrow"
statusline_iseparator = "arrow"
buffer_index_type = 4
enable_tabline_filetype_icon = true
enable_statusline_mode = false

# Enable autocomplete layer
[[layers]]
name = 'autocomplete'
auto_completion_return_key_behavior = "complete"
auto_completion_tab_key_behavior = "smart"

[[layers]]
name = 'shell'
default_position = 'top'
default_height = 30