mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-19 04:46:45 +00:00
add winblend ui option
This commit is contained in:
parent
7967abe557
commit
5df6d0b178
2 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,7 @@ local ViewConfig = require("lazy.view.config")
|
|||
---@field ft? string
|
||||
---@field noautocmd? boolean
|
||||
---@field backdrop? float
|
||||
---@field winblend? number
|
||||
|
||||
---@class LazyFloat
|
||||
---@field buf number
|
||||
|
@ -55,6 +56,7 @@ function M:init(opts)
|
|||
style = "minimal",
|
||||
border = Config.options.ui.border or "none",
|
||||
backdrop = Config.options.ui.backdrop or 60,
|
||||
winblend = Config.options.ui.winblend or 0,
|
||||
zindex = 50,
|
||||
}, opts or {})
|
||||
|
||||
|
@ -184,6 +186,7 @@ function M:mount()
|
|||
Util.wo(self.win, "wrap", true)
|
||||
Util.wo(self.win, "winhighlight", "Normal:LazyNormal")
|
||||
Util.wo(self.win, "colorcolumn", "")
|
||||
Util.wo(self.win, "winblend", self.opts.winblend)
|
||||
end
|
||||
opts()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue