diff --git a/lua/drop/drop.lua b/lua/drop/drop.lua index 59f7e5f..d5caccb 100644 --- a/lua/drop/drop.lua +++ b/lua/drop/drop.lua @@ -96,6 +96,7 @@ function M.show() zindex = 10, style = "minimal", noautocmd = true, + border = "none", }) vim.api.nvim_create_autocmd("VimResized", { callback = function() @@ -109,10 +110,13 @@ function M.show() col = 0, width = vim.go.columns, height = vim.go.lines, + border = "none", }) end, }) - vim.wo[M.win].winhighlight = "NormalFloat:Drop" + -- Force transparent background by setting Normal to a highlight group with no background + vim.api.nvim_set_hl(0, "DropNvimTransparent", { bg = "NONE" }) + vim.wo[M.win].winhighlight = "NormalFloat:DropNvimTransparent,Normal:DropNvimTransparent" vim.wo[M.win].winblend = config.options.winblend M.ticks = 0 M.timer = vim.loop.new_timer()