Skip to content

Commit 00cbec8

Browse files
committed
✨ add lualine support
1 parent b351754 commit 00cbec8

3 files changed

Lines changed: 74 additions & 26 deletions

File tree

lua/lualine/themes/spaceduck.lua

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
local spaceduck = {}
2+
3+
spaceduck.normal = {
4+
-- 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 },
8+
}
9+
10+
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 },
14+
}
15+
16+
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 },
20+
}
21+
22+
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 },
26+
}
27+
28+
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 },
32+
}
33+
34+
-- you can assign one colorscheme to another, if a colorscheme is
35+
-- undefined it falls back to normal
36+
spaceduck.terminal = spaceduck.normal
37+
38+
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 },
42+
}
43+
44+
-- lualine.theme = spaceduck
45+
return spaceduck

lua/palette.lua

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
local colors = {
2+
cream = { hex = "#ecf0c1", cterm = 255 },
3+
white = { hex = "#FFFFFF", cterm = 15 },
4+
5+
black = { hex = "#000000", cterm = 0 },
6+
blackish = { hex = "#0f111b", cterm = 233 },
7+
8+
dark_blue = { hex = "#16172d", cterm = 234 },
9+
10+
dark_grey = { hex = "#1b1c36", cterm = 234 },
11+
greyer = { hex = "#c1c3cc", cterm = 251 },
12+
grey = { hex = "#818596", cterm = 102 },
13+
14+
dark_purple = { hex = "#30365F", cterm = 237 },
15+
grey_purple = { hex = "#686f9a", cterm = 60 },
16+
purple = { hex = "#7a5ccc", cterm = 98 },
17+
light_purple = { hex = "#b3a1e6", cterm = 146 },
18+
19+
cyan = { hex = "#00a3cc", cterm = 38 },
20+
green = { hex = "#5ccc96", cterm = 78 },
21+
orange = { hex = "#e39400", cterm = 172 },
22+
red = { hex = "#e33400", cterm = 166 },
23+
yellow = { hex = "#f2ce00", cterm = 220 },
24+
magenta = { hex = "#ce6f8f", cterm = 168 },
25+
}
26+
27+
return colors

lua/spaceduck.lua

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
-- Author: Guillermo Rodriguez
66
-- License: MIT
77
-- ===============================================================
8+
local colors = require("palette")
9+
810
vim.opt.background = "dark"
911
vim.api.nvim_command("hi clear")
1012

@@ -24,32 +26,6 @@ if vim.g.spaceduck_bold then
2426
Bold = "bold"
2527
end
2628

27-
local colors = {
28-
cream = { hex = "#ecf0c1", cterm = 255 },
29-
white = { hex = "#FFFFFF", cterm = 15 },
30-
31-
black = { hex = "#000000", cterm = 0 },
32-
blackish = { hex = "#0f111b", cterm = 233 },
33-
34-
dark_blue = { hex = "#16172d", cterm = 234 },
35-
36-
dark_grey = { hex = "#1b1c36", cterm = 234 },
37-
greyer = { hex = "#c1c3cc", cterm = 251 },
38-
grey = { hex = "#818596", cterm = 102 },
39-
40-
dark_purple = { hex = "#30365F", cterm = 237 },
41-
grey_purple = { hex = "#686f9a", cterm = 60 },
42-
purple = { hex = "#7a5ccc", cterm = 98 },
43-
light_purple = { hex = "#b3a1e6", cterm = 146 },
44-
45-
cyan = { hex = "#00a3cc", cterm = 38 },
46-
green = { hex = "#5ccc96", cterm = 78 },
47-
orange = { hex = "#e39400", cterm = 172 },
48-
red = { hex = "#e33400", cterm = 166 },
49-
yellow = { hex = "#f2ce00", cterm = 220 },
50-
magenta = { hex = "#ce6f8f", cterm = 168 },
51-
}
52-
5329
vim.g.terminal_color_foreground = colors.cream.hex
5430
vim.g.terminal_color_background = colors.blackish.hex
5531
vim.g.terminal_color_0 = colors.black.hex

0 commit comments

Comments
 (0)