This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtokyonight.lua
54 lines (44 loc) · 1.68 KB
/
tokyonight.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
local config = require("tokyonight.config")
local colors = require("tokyonight.colors").setup(config)
local util = require("tokyonight.util")
local tokyonight = {}
tokyonight.normal = {
left = {{ colors.black, colors.blue }, { colors.blue, colors.bg }},
middle = {{ colors.blue, colors.fg_gutter }},
right = {{ colors.fg_sidebar, colors.bg_statusline }, { colors.blue, colors.bg }},
error = {{ colors.black, colors.error }},
warning = {{ colors.black, colors.warning }},
}
tokyonight.insert = {
left = {{ colors.black, colors.green }, { colors.blue, colors.bg }},
}
tokyonight.visual = {
left = {{ colors.black, colors.magenta }, { colors.blue, colors.bg }},
}
tokyonight.replace = {
left = {{ colors.black, colors.red }, { colors.blue, colors.bg }},
}
tokyonight.inactive = {
left = {{ colors.blue, colors.bg_statusline }, {colors.dark3, colors.bg }},
middle = {{ colors.fg_gutter, colors.bg_statusline }},
right = {{ colors.fg_gutter, colors.bg_statusline }, {colors.dark3, colors.bg }},
}
tokyonight.tabline = {
left = {{ colors.dark3, colors.bg_highlight }, {colors.dark3, colors.bg }},
middle = {{ colors.fg_gutter, colors.bg_statusline }},
right = {{ colors.fg_gutter, colors.bg_statusline }, {colors.dark3, colors.bg }},
tabsel = {{ colors.blue, colors.fg_gutter }, { colors.dark3, colors.bg }},
}
-- inactive_tab_background #292e42
-- inactive_tab_foreground #545c7e
if vim.o.background == "light" then
for _, mode in pairs(tokyonight) do
for _, section in pairs(mode) do
for _, subsection in pairs(section) do
subsection[1] = util.getColor(subsection[1])
subsection[2] = util.getColor(subsection[2])
end
end
end
end
return tokyonight