Skip to content

Commit 5ab2612

Browse files
A-Lamiamehalter
authored andcommitted
feat(spotlight): add support for spotlight
1 parent 0da2954 commit 5ab2612

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

lua/astrotheme/groups/plugins/init.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ return {
2121
["nvim-window-picker"] = "nvim-window-picker",
2222
["mason.nvim"] = "mason",
2323
["rainbow-delimiters.nvim"] = "rainbow-delimiters",
24+
["spotlight.nvim"] = "spotlight",
2425
["symbols-outline.nvim"] = "symbols-outline",
2526
["telescope.nvim"] = "telescope",
2627
["vimwiki"] = "vimwiki",
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
local function callback(opts)
2+
return {
3+
SpotlightTitle = {
4+
fg = (opts.title_invert and C.ui.tool) or C.ui.title,
5+
bg = (opts.title_invert and C.ui.title)
6+
-- or (opts.transparent and C.none)
7+
or C.ui.base,
8+
blend = opts.title_invert and 0 or vim.o.winblend or 0,
9+
bold = true,
10+
},
11+
SpotlightBorder = {
12+
fg = C.ui.base,
13+
bg = C.ui.base,
14+
blend = vim.o.winblend or 0,
15+
},
16+
SpotlightNormal = {
17+
fg = C.ui.text,
18+
bg = C.ui.base,
19+
blend = vim.o.winblend or 0,
20+
},
21+
SpotlightWinSeparator = {
22+
fg = C.ui.tabline,
23+
bg = C.ui.tabline,
24+
blend = vim.o.winblend or 0,
25+
},
26+
SpotlightNormalNC = {
27+
fg = C.ui.tabline,
28+
bg = C.ui.tabline,
29+
blend = vim.o.winblend or 0,
30+
},
31+
}
32+
end
33+
34+
return callback

0 commit comments

Comments
 (0)