Skip to content

Commit 916102a

Browse files
committed
feat(extensions): add grug-far.nvim
1 parent ba25d43 commit 916102a

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

lua/cyberdream/config.lua

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ local M = {}
3030
---@field gitpad? boolean
3131
---@field gitsigns? boolean
3232
---@field grapple? boolean
33+
---@field grugfar? boolean
3334
---@field heirline? boolean
3435
---@field hop? boolean
3536
---@field indentblankline? boolean
@@ -75,6 +76,7 @@ local default_options = {
7576
gitpad = true,
7677
gitsigns = true,
7778
grapple = true,
79+
grugfar = true,
7880
heirline = true,
7981
hop = true,
8082
indentblankline = true,

lua/cyberdream/extensions/grugfar.lua

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
local M = {}
2+
local util = require("cyberdream.util")
3+
4+
--- @param opts Config
5+
--- @param t CyberdreamPalette
6+
function M.get(opts, t)
7+
opts = opts or {}
8+
local highlights = {
9+
GrugFarHelpHeader = { link = "Comment" },
10+
GrugFarHelpHeaderKey = { fg = t.cyan, bold = true },
11+
GrugFarHelpWinHeader = { fg = t.blue, bold = true },
12+
GrugFarHelpWinActionPrefix = { fg = t.purple },
13+
GrugFarHelpWinActionText = { link = "Normal" },
14+
GrugFarHelpWinActionKey = { fg = t.cyan, bold = true },
15+
GrugFarHelpWinActionDescription = { link = "Comment" },
16+
17+
GrugFarInputLabel = { fg = t.orange, bold = true },
18+
GrugFarInputPlaceholder = { fg = util.blend(t.bgHighlight, t.fg, 0.9), italic = true },
19+
20+
GrugFarResultsHeader = { link = "Comment" },
21+
GrugFarResultsStats = { fg = t.yellow },
22+
GrugFarResultsActionMessage = { fg = t.bg_solid, bg = t.green, bold = true },
23+
24+
GrugFarResultsMatch = { fg = t.cyan, bg = util.blend(t.bg_solid, t.cyan, 0.85), bold = true },
25+
GrugFarResultsChangeIndicator = { fg = t.cyan },
26+
GrugFarResultsPath = { fg = t.blue, bold = true, underline = true },
27+
GrugFarResultsRgCmdHeader = { link = "GrugFarResultsPath" },
28+
GrugFarResultsLineNo = { fg = t.pink, bold = true },
29+
GrugFarResultsLineColumn = { link = "GrugFarResultsLineNo" },
30+
}
31+
return highlights
32+
end
33+
return M

0 commit comments

Comments
 (0)