Skip to content

Commit ab971f0

Browse files
committed
🐛 fix errors in lualine support
1 parent 00cbec8 commit ab971f0

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

lua/lualine/themes/spaceduck.lua

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,45 @@
1+
local colors = require("palette")
12
local spaceduck = {}
23

34
spaceduck.normal = {
45
-- gui parameter is optional and behaves the same way as in vim's highlight command
5-
a = { bg = colors.grey_purple, fg = colors.blackish, gui = "bold" },
6-
b = { bg = colors.dark_purple, fg = colors.greyer },
7-
c = { bg = colors.blackish, fg = colors.greyer },
6+
a = { bg = colors.grey_purple.hex, fg = colors.blackish.hex, gui = "bold" },
7+
b = { bg = colors.dark_purple.hex, fg = colors.greyer.hex },
8+
c = { bg = colors.blackish.hex, fg = colors.greyer.hex },
89
}
910

1011
spaceduck.insert = {
11-
a = { bg = colors.green, fg = colors.blackish, gui = "bold" },
12-
b = { bg = colors.dark_purple, fg = colors.greyer },
13-
c = { bg = colors.blackish, fg = colors.greyer },
12+
a = { bg = colors.green.hex, fg = colors.blackish.hex, gui = "bold" },
13+
b = { bg = colors.dark_purple.hex, fg = colors.greyer.hex },
14+
c = { bg = colors.blackish.hex, fg = colors.greyer.hex },
1415
}
1516

1617
spaceduck.visual = {
17-
a = { bg = colors.yellow, fg = colors.blackish, gui = "bold" },
18-
b = { bg = colors.dark_purple, fg = colors.greyer },
19-
c = { bg = colors.blackish, fg = colors.greyer },
18+
a = { bg = colors.yellow.hex, fg = colors.blackish.hex, gui = "bold" },
19+
b = { bg = colors.dark_purple.hex, fg = colors.greyer.hex },
20+
c = { bg = colors.blackish.hex, fg = colors.greyer.hex },
2021
}
2122

2223
spaceduck.replace = {
23-
a = { bg = colors.purple, fg = colors.blackish, gui = "bold" },
24-
b = { bg = colors.dark_purple, fg = colors.greyer },
25-
c = { bg = colors.blackish, fg = colors.greyer },
24+
a = { bg = colors.purple.hex, fg = colors.blackish.hex, gui = "bold" },
25+
b = { bg = colors.dark_purple.hex, fg = colors.greyer.hex },
26+
c = { bg = colors.blackish.hex, fg = colors.greyer.hex },
2627
}
2728

2829
spaceduck.command = {
29-
a = { bg = colors.cyan, fg = colors.blackish, gui = "bold" },
30-
b = { bg = colors.dark_purple, fg = colors.greyer },
31-
c = { bg = colors.blackish, fg = colors.greyer },
30+
a = { bg = colors.cyan.hex, fg = colors.blackish.hex, gui = "bold" },
31+
b = { bg = colors.dark_purple.hex, fg = colors.greyer.hex },
32+
c = { bg = colors.blackish.hex, fg = colors.greyer.hex },
3233
}
3334

3435
-- you can assign one colorscheme to another, if a colorscheme is
3536
-- undefined it falls back to normal
3637
spaceduck.terminal = spaceduck.normal
3738

3839
spaceduck.inactive = {
39-
a = { bg = colors.blackish, fg = colors.greyer, gui = "bold" },
40-
b = { bg = colors.blackish, fg = colors.greyer },
41-
c = { bg = colors.blackish, fg = colors.greyer },
40+
a = { bg = colors.blackish.hex, fg = colors.greyer.hex, gui = "bold" },
41+
b = { bg = colors.blackish.hex, fg = colors.greyer.hex },
42+
c = { bg = colors.blackish.hex, fg = colors.greyer.hex },
4243
}
4344

4445
-- lualine.theme = spaceduck

0 commit comments

Comments
 (0)