Spacevim第三方主题设置

启用其它主题 安装插件 设置好主题

起因 觉得自带主题不好看 想换个主题 找了很多主题

找到了 Catppuccin 主题 觉得不错 怎么设置呢 跟着我来
https://github.com/catppuccin/nvim

1. Catppuccin需要真正的颜色,添加到你的配置:

1
2
3
[options]
# true colors
enable_guicolors = true

2. 安装插件

1
2
3
[[custom_plugins]]
repo = "catppuccin/nvim"
merged = 0

3. 启用主题

1
2
3
4
5
6
7
8
9
[options]
# set spacevim theme. by default colorscheme layer is not loaded,
# if you want to use more colorscheme, please load the colorscheme
# layer
colorscheme = "catppuccin"
colorscheme_bg = "dark"
# Disable guicolors in basic mode, many terminal do not support 24bit
# true colors
enable_guicolors = true

4. 保存退出 再重新进入nvim查看

1
:wq

5. 透明背景设置

透明背景 装个插件即可 tribela/vim-transparent
https://github.com/tribela/vim-transparent

1
2
3
[[custom_plugins]]
repo = "tribela/vim-transparent"
merged = 0

效果图
效果图

我的完整配置

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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#=============================================================================
# basic.toml --- basic configuration example for SpaceVim
# Copyright (c) 2016-2023 Wang Shidong & Contributors
# Author: Wang Shidong < wsdjeg@outlook.com >
# URL: https://spacevim.org
# License: GPLv3
#=============================================================================

# All SpaceVim option below [option] section
[options]
# set spacevim theme. by default colorscheme layer is not loaded,
# if you want to use more colorscheme, please load the colorscheme
# layer
colorscheme = "catppuccin"
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 = "nil"
statusline_iseparator = "bar"
buffer_index_type = 4
windows_index_type = 3
enable_tabline_filetype_icon = false
enable_statusline_mode = false
statusline_unicode = false
# Enable vim compatible mode, avoid changing origin vim key bindings
vimcompatible = true

# 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

[[custom_plugins]]
repo = "catppuccin/nvim"
merged = 0

[[custom_plugins]]
repo = "tribela/vim-transparent"
merged = 0

[[custom_plugins]]
repo = "shaunsingh/solarized.nvim"
merged = 0

# Python
[[layers]]
name = "lang#python"
[[layers]]
name = "format"
[[layers]]
name = "debug"

#Java
[[layers]]
name = "lang#java"
[[layers]]
name = "lsp"
filetypes = [
"java"
]
[layers.override_cmd]
java = [
"java",
"-Declipse.application=org.eclipse.jdt.ls.core.id1",
"-Dosgi.bundles.defaultStartLevel=4",
"-Declipse.product=org.eclipse.jdt.ls.core.product",
"-Dlog.protocol=true",
"-Dlog.level=NONE",
"-noverify",
"-Xmx1G",
"-jar",
"/dev/jdt-language-server-latest/plugins/org.eclipse.equinox.launcher.gtk.linux.aarch64_1.2.700.v20221108-1024.jar",
"-configuration",
"/dev/jdt-language-server-latest/config_linux",
"-data",
"~/.cache/javalsp"
]

[[layers]]
name = "denite"

[[custom_plugins]]
repo = 'mfussenegger/nvim-jdtls'
merged = false