Skip to content

Commit ad8ad48

Browse files
committed
feat(extensions): migrate remaining theme plugins to extensions
1 parent 3d8ee41 commit ad8ad48

9 files changed

+152
-46
lines changed

lua/cyberdream/config.lua

+14
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,16 @@ local M = {}
2727
---@field cmp? boolean
2828
---@field dashboard? boolean
2929
---@field fzflua? boolean
30+
---@field gitsigns? boolean
3031
---@field grapple? boolean
32+
---@field heirline? boolean
33+
---@field indentblankline? boolean
34+
---@field lazy? boolean
35+
---@field leap? boolean
3136
---@field mini? boolean
37+
---@field noice? boolean
3238
---@field notify? boolean
39+
---@field eainbow_delimiters? boolean
3340
---@field telescope? boolean
3441
---@field whichkey? boolean
3542

@@ -59,9 +66,16 @@ local default_options = {
5966
cmp = true,
6067
dashboard = true,
6168
fzflua = true,
69+
gitsigns = true,
6270
grapple = true,
71+
heirline = true,
72+
indentblankline = true,
73+
lazy = true,
74+
leap = true,
6375
mini = true,
76+
noice = true,
6477
notify = true,
78+
rainbow_delimiters = true,
6579
telescope = true,
6680
whichkey = true,
6781
},
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
local M = {}
2+
3+
--- Get extension configuration
4+
--- @param opts Config
5+
--- @param t CyberdreamPalette
6+
function M.get(opts, t)
7+
opts = opts or {}
8+
local highlights = {
9+
LeapMatch = { fg = t.fg, bg = t.magenta },
10+
LeapLabelPrimary = { fg = t.blue, bg = t.bg, bold = true },
11+
LeapLabelSecondary = { fg = t.green, bg = t.bg },
12+
LeapBackdrop = { fg = t.bgHighlight },
13+
}
14+
15+
return highlights
16+
end
17+
return M
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
local M = {}
2+
3+
--- Get extension configuration
4+
--- @param opts Config
5+
--- @param t CyberdreamPalette
6+
function M.get(opts, t)
7+
opts = opts or {}
8+
local highlights = {
9+
HeirlineInactive = { bg = t.grey },
10+
HeirlineNormal = { bg = t.blue },
11+
HeirlineVisual = { bg = t.magenta },
12+
HeirlineReplace = { bg = t.red },
13+
HeirlineCommand = { bg = t.yellow },
14+
HeirlineInsert = { bg = t.green },
15+
HeirlineTerminal = { bg = t.cyan },
16+
}
17+
18+
return highlights
19+
end
20+
return M
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
local util = require("cyberdream.util")
2+
local M = {}
3+
4+
--- Get extension configuration
5+
--- @param opts Config
6+
--- @param t CyberdreamPalette
7+
function M.get(opts, t)
8+
opts = opts or {}
9+
local highlights = {
10+
IblIndent = { fg = util.blend(t.bgHighlight, t.bgAlt, 0.3) },
11+
IblScope = { fg = t.bgHighlight },
12+
}
13+
14+
return highlights
15+
end
16+
return M

lua/cyberdream/extensions/lazy.lua

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
local M = {}
2+
3+
--- Get extension configuration
4+
--- @param opts Config
5+
--- @param t CyberdreamPalette
6+
function M.get(opts, t)
7+
opts = opts or {}
8+
local highlights = {
9+
LazyH1 = { fg = t.blue, bold = true },
10+
LazyH2 = { fg = t.fg, bold = true },
11+
LazyButton = { fg = t.fg, bg = t.bgHighlight },
12+
LazyButtonActive = { fg = t.fg, bg = t.bgHighlight, bold = true },
13+
14+
LazyProgressDone = { bold = true, fg = t.magenta },
15+
LazyProgressTodo = { bold = true, fg = t.grey },
16+
17+
LazyReasonCmd = { fg = t.yellow },
18+
LazyReasonEvent = { fg = t.magenta },
19+
LazyReasonKeys = { fg = t.cyan },
20+
LazyReasonPlugin = { fg = t.green },
21+
LazyReasonRequire = { fg = t.orange },
22+
LazyReasonRuntime = { fg = t.red },
23+
LazyReasonStart = { fg = t.blue },
24+
LazySpecial = { fg = t.cyan },
25+
26+
Bold = { fg = t.grey, bold = true, italic = true },
27+
}
28+
return highlights
29+
end
30+
return M

lua/cyberdream/extensions/leap.lua

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
local M = {}
2+
3+
--- Get extension configuration
4+
--- @param opts Config
5+
--- @param t CyberdreamPalette
6+
function M.get(opts, t)
7+
opts = opts or {}
8+
local highlights = {
9+
GitSignsAdd = { fg = t.green },
10+
GitSignsChange = { fg = t.orange },
11+
GitSignsDelete = { fg = t.red },
12+
}
13+
14+
return highlights
15+
end
16+
return M

lua/cyberdream/extensions/noice.lua

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
local M = {}
2+
3+
--- Get extension configuration
4+
--- @param opts Config
5+
--- @param t CyberdreamPalette
6+
function M.get(opts, t)
7+
opts = opts or {}
8+
local highlights = {
9+
NoiceFormatProgressDone = { fg = t.bgAlt, bg = t.cyan },
10+
NoiceFormatProgressTodo = { fg = t.grey, bg = t.bgHighlight },
11+
NoiceLspProgressClient = { fg = t.blue },
12+
NoiceLspProgressSpinner = { fg = t.orange },
13+
NoiceLspProgressTitle = { fg = t.cyan },
14+
}
15+
16+
return highlights
17+
end
18+
return M
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
local M = {}
2+
3+
--- Get extension configuration
4+
--- @param opts Config
5+
--- @param t CyberdreamPalette
6+
function M.get(opts, t)
7+
opts = opts or {}
8+
local highlights = {
9+
RainbowDelimiterRed = { fg = t.red },
10+
RainbowDelimiterOrange = { fg = t.orange },
11+
RainbowDelimiterYellow = { fg = t.yellow },
12+
RainbowDelimiterGreen = { fg = t.green },
13+
RainbowDelimiterBlue = { fg = t.blue },
14+
RainbowDelimiterViolet = { fg = t.purple },
15+
RainbowDelimiterCyan = { fg = t.cyan },
16+
}
17+
18+
return highlights
19+
end
20+
return M

lua/cyberdream/theme.lua

+1-46
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function M.setup()
5656
ICursor = { fg = t.bg, bg = t.fg },
5757
CursorIM = { fg = t.bg, bg = t.fg },
5858
CursorColumn = { bg = t.bgHighlight },
59-
CursorLine = { bg = (util.blend(t.bg_solid, t.bgHighlight, 0.65)) },
59+
CursorLine = { bg = t.bgHighlight },
6060
Directory = { fg = t.blue },
6161
DiffAdd = { fg = t.green },
6262
DiffChange = { fg = t.cyan },
@@ -188,51 +188,6 @@ function M.setup()
188188

189189
LspInfoBorder = { fg = t.bg },
190190

191-
-- Leap
192-
LeapMatch = { fg = t.fg, bg = t.magenta },
193-
LeapLabelPrimary = { fg = t.blue, bg = t.bg, bold = true },
194-
LeapLabelSecondary = { fg = t.green, bg = t.bg },
195-
LeapBackdrop = { fg = t.bgHighlight },
196-
197-
-- Lazy
198-
LazyProgressDone = { bold = true, fg = t.magenta },
199-
LazyProgressTodo = { bold = true, fg = t.grey },
200-
201-
-- Noice
202-
NoiceFormatProgressDone = { fg = t.bgAlt, bg = t.cyan },
203-
NoiceFormatProgressTodo = { fg = t.grey, bg = t.bgHighlight },
204-
205-
NoiceLspProgressClient = { fg = t.blue },
206-
NoiceLspProgressSpinner = { fg = t.orange },
207-
NoiceLspProgressTitle = { fg = t.cyan },
208-
209-
-- GitSigns
210-
GitSignsAdd = { fg = t.green },
211-
GitSignsChange = { fg = t.orange },
212-
GitSignsDelete = { fg = t.red },
213-
214-
-- Rainbow Delimiters
215-
RainbowDelimiterRed = { fg = t.red },
216-
RainbowDelimiterOrange = { fg = t.orange },
217-
RainbowDelimiterYellow = { fg = t.yellow },
218-
RainbowDelimiterGreen = { fg = t.green },
219-
RainbowDelimiterBlue = { fg = t.blue },
220-
RainbowDelimiterViolet = { fg = t.purple },
221-
RainbowDelimiterCyan = { fg = t.cyan },
222-
223-
-- Heirline
224-
HeirlineInactive = { bg = t.grey },
225-
HeirlineNormal = { bg = t.blue },
226-
HeirlineVisual = { bg = t.magenta },
227-
HeirlineReplace = { bg = t.red },
228-
HeirlineCommand = { bg = t.yellow },
229-
HeirlineInsert = { bg = t.green },
230-
HeirlineTerminal = { bg = t.cyan },
231-
232-
-- Indent Blankline
233-
IblIndent = { fg = util.blend(t.bgHighlight, t.bgAlt, 0.3) },
234-
IblScope = { fg = t.bgHighlight },
235-
236191
-- TreeSitter Context
237192
TreeSitterContext = { bg = util.blend(t.bgAlt, t.cyan, 0.9) },
238193
TreeSitterContextLineNumber = { fg = util.blend(t.bgHighlight, t.fg) },

0 commit comments

Comments
 (0)