We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba58b87 commit 0ccf031Copy full SHA for 0ccf031
lua/lazy/view/float.lua
@@ -131,7 +131,10 @@ function M:mount()
131
self.buf = vim.api.nvim_create_buf(false, true)
132
end
133
134
- if self.opts.backdrop and self.opts.backdrop < 100 and vim.o.termguicolors then
+ local normal = vim.api.nvim_get_hl(0, { name = "Normal" })
135
+ local has_bg = normal and normal.bg ~= nil
136
+
137
+ if has_bg and self.opts.backdrop and self.opts.backdrop < 100 and vim.o.termguicolors then
138
self.backdrop_buf = vim.api.nvim_create_buf(false, true)
139
self.backdrop_win = vim.api.nvim_open_win(self.backdrop_buf, false, {
140
relative = "editor",
0 commit comments