fix(ui): only enable backdrop when guicolors is set. Fixes #1387

This commit is contained in:
Folke Lemaitre 2024-03-26 22:57:55 +01:00
parent 68941b7b13
commit d37a76b871
No known key found for this signature in database
GPG Key ID: 41F8B1FBACAE2040
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ function M:mount()
self.buf = vim.api.nvim_create_buf(false, true)
end
if self.opts.backdrop and self.opts.backdrop < 100 then
if self.opts.backdrop and self.opts.backdrop < 100 and vim.o.termguicolors then
self.backdrop_buf = vim.api.nvim_create_buf(false, true)
self.backdrop_win = vim.api.nvim_open_win(self.backdrop_buf, false, {
relative = "editor",