Skip to content

Commit 31f31f2

Browse files
authored
feat(extensions): add neogit (#117)
* Add neogit.nvim * Changed bg to match highlight groups * Fix formatting Resolves #116
1 parent 4429874 commit 31f31f2

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

lua/cyberdream/config.lua

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ local M = {}
4141
---@field markdown? boolean
4242
---@field markview? boolean
4343
---@field mini? boolean
44+
---@field neogit? boolean
4445
---@field noice? boolean
4546
---@field notify? boolean
4647
---@field rainbow_delimiters? boolean
@@ -91,6 +92,7 @@ local default_options = {
9192
markview = true,
9293
mini = true,
9394
noice = true,
95+
neogit = true,
9496
notify = true,
9597
rainbow_delimiters = true,
9698
telescope = true,

lua/cyberdream/extensions/neogit.lua

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
NeogitNormal = { bg = t.bg },
10+
NeogitPopupSwitchKey = { fg = t.orange },
11+
NeogitPopupOptionKey = { fg = t.orange },
12+
NeogitPopupActionKey = { fg = t.orange },
13+
NeogitPopupBranchName = { fg = t.cyan, bold = true },
14+
NeogitPopupSectionTitle = { fg = t.pink, bold = true },
15+
NeogitFold = { fg = t.fg },
16+
NeogitRemote = { fg = t.cyan },
17+
NeogitBranch = { fg = t.pink, bold = true },
18+
NeogitBranchHead = { fg = t.pink, bold = true },
19+
NeogitWinSeparator = { bg = t.bg, fg = t.bgHighlight },
20+
NeogitChangeDeleted = { fg = t.red, bold = true, italic = true },
21+
NeogitChangeModified = { fg = t.blue, bold = true, italic = true },
22+
NeogitSectionHeader = { fg = t.orange, bold = true },
23+
NeogitCommitViewHeader = { bg = t.pink, fg = t.bgAlt },
24+
NeogitHunkHeader = { bg = t.cyan, fg = t.bgAlt, bold = true },
25+
NeogitHunkHeaderHighlight = { bg = t.pink, fg = t.bgAlt, bold = true },
26+
NeogitDiffHeader = { bg = t.fg, fg = t.bgAlt },
27+
NeogitDiffContext = { bg = t.bg },
28+
NeogitDiffHeaderHighlight = { bg = t.bgHighlight, fg = t.orange, bold = true, italic = true },
29+
NeogitDiffContextHighlight = { bg = t.bgHighlight },
30+
}
31+
32+
return highlights
33+
end
34+
35+
return M

0 commit comments

Comments
 (0)