Skip to content

Commit 7170c13

Browse files
committed
fix: support transparency in navic integration
1 parent 93b52ce commit 7170c13

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

lua/base46/integrations/navic.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
local opts = require("nvconfig").base46
2+
13
local base16 = require("base46").get_theme_tb "base_16"
24
local colors = require("base46").get_theme_tb "base_30"
35

@@ -43,8 +45,10 @@ local hlgroups = {
4345
NavicSeparator = { fg = colors.red },
4446
}
4547

46-
for _, value in pairs(hlgroups) do
47-
value["bg"] = colors.statusline_bg
48+
if not opts.transparency then
49+
for _, value in pairs(hlgroups) do
50+
value["bg"] = colors.statusline_bg
51+
end
4852
end
4953

5054
return hlgroups

lua/base46/integrations/treesitter.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ local theme = require("base46").get_theme_tb "base_16"
22
local base30 = require("base46").get_theme_tb "base_30"
33

44
local opts = require("nvconfig").base46
5-
local transparent = opts.transparent
65

76
return {
87

@@ -79,7 +78,7 @@ return {
7978
["@markup.underline"] = { underline = true },
8079
["@markup.italic"] = { italic = true },
8180
["@markup.strikethrough"] = { strikethrough = true },
82-
["@markup.quote"] = { bg = transparent and nil or base30.black2 },
81+
["@markup.quote"] = { bg = opts.transparency and nil or base30.black2 },
8382

8483
["@comment"] = { fg = base30.grey_fg },
8584
["@comment.todo"] = { fg = base30.grey, bg = base30.white },

0 commit comments

Comments
 (0)