summaryrefslogtreecommitdiff
path: root/dot-config/nvim/lua/my-lualine-theme.lua
blob: f42d331f331b08707d5aa4c6cf0b93c174e2a6e6 (plain)
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
local gh = require("github-theme.spec").load("github_light")

local colors = {
	bg = gh.bg1,
	alt_bg = gh.bg0,
	dark_fg = gh.palette.fg.emphasis,
	fg = gh.palette.fg.default,
	light_fg = gh.palette.fg.subtle,
	normal = gh.palette.blue.base,
	insert = gh.palette.green.base,
	visual = gh.palette.magenta.base,
	replace = gh.palette.red.base,
}

local theme = {
	normal = {
		a = { fg = colors.bg, bg = colors.normal },
		b = { fg = colors.light_fg, bg = colors.alt_bg },
		c = { fg = colors.fg, bg = colors.bg },
	},
	replace = {
		a = { fg = colors.bg, bg = colors.replace },
		b = { fg = colors.light_fg, bg = colors.alt_bg },
	},
	insert = {
		a = { fg = colors.bg, bg = colors.insert },
		b = { fg = colors.light_fg, bg = colors.alt_bg },
	},
	visual = {
		a = { fg = colors.bg, bg = colors.visual },
		b = { fg = colors.light_fg, bg = colors.alt_bg },
	},
	inactive = {
		a = { fg = colors.dark_fg, bg = colors.bg },
		b = { fg = colors.dark_fg, bg = colors.bg },
		c = { fg = colors.dark_fg, bg = colors.bg },
	},
}

theme.command = theme.normal
theme.terminal = theme.insert

return theme