-
Notifications
You must be signed in to change notification settings - Fork 4
/
theme.lua
66 lines (59 loc) 路 1.89 KB
/
theme.lua
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
local M = {}
M.init = function()
local ok, onedarkpro = as.safe_require("onedarkpro", { silent = true })
if not ok then
return
end
onedarkpro.setup({
styles = {
comments = "italic",
keywords = "bold,italic",
},
colors = {
onedark = {
brackets = "#abb2bf", -- fg / gray
},
onelight = {
brackets = "#e05661", -- red
},
},
hlgroups = {
ModeMsg = { link = "LineNr" },
TSPunctBracket = { fg = "${brackets}" }, -- Brackets
TSPunctSpecial = { fg = "${brackets}" }, -- Brackets
-- Aerial plugin
AerialClassIcon = { fg = "${purple}" },
AerialConstructorIcon = { fg = "${yellow}" },
AerialEnumIcon = { fg = "${blue}" },
AerialFunctionIcon = { fg = "${red}" },
AerialInterfaceIcon = { fg = "${orange}" },
AerialMethodIcon = { fg = "${green}" },
AerialStructIcon = { fg = "${cyan}" },
-- Alpha plugin
AlphaColorBlue = { fg = "${blue}" },
AlphaColorCyan = { fg = "${cyan}" },
AlphaColorGray = { fg = "${fg}" },
AlphaColorGreen = { fg = "${green}" },
AlphaColorOrange = { fg = "${orange}" },
AlphaColorPurple = { fg = "${purple}" },
AlphaColorRed = { fg = "${red}" },
AlphaColorYellow = { fg = "${yellow}" },
AlphaButtonText = { fg = (vim.o.background == "dark" and "${blue}" or "${purple}"), style = "bold" },
AlphaButtonShortcut = {
fg = (vim.o.background == "dark" and "${orange}" or "${yellow}"),
style = "italic,bold",
},
AlphaFooter = { fg = "${fg}", style = "italic" },
-- LSP plugin
LspDiagnosticsVirtualTextError = { fg = "${red}", style = "italic,underline" },
LspDiagnosticsVirtualTextWarning = { fg = "${yellow}", style = "italic,underline" },
LspDiagnosticsVirtualTextInformation = { fg = "${blue}", style = "italic,underline" },
LspDiagnosticsVirtualTextHint = { fg = "${cyan}", style = "italic,underline" },
},
options = {
cursorline = true,
},
})
onedarkpro.load()
end
return M