fix(backdrop): place above scrollbars
parent
8b10f06735
commit
8df00d9ec0
|
|
@ -9,7 +9,13 @@ function M.new(referenceBuf, referenceZindex)
|
|||
local config = require("genghis.config").config
|
||||
if not config.backdrop.enabled then return end
|
||||
local blend = config.backdrop.blend
|
||||
if not referenceZindex then referenceZindex = 10 end
|
||||
|
||||
-- `DressingInput` has a zindex of 49: https://github.com/stevearc/dressing.nvim/blob/e3714c8049b2243e792492c4149e4cc395c68eb9/lua/dressing/input.lua#L369
|
||||
-- `DressingSelect` has a zindex of 150: https://github.com/stevearc/dressing.nvim/blob/e3714c8049b2243e792492c4149e4cc395c68eb9/lua/dressing/select/builtin.lua#L96
|
||||
-- `nivm-notify` apparently does not set a zindex, so it uses the default value
|
||||
-- of `nvim_open_win`, which is 50: https://neovim.io/doc/user/api.html#nvim_open_win()
|
||||
-- satellite.nvim has (by default) 40, backdrop should be above -- https://github.com/lewis6991/satellite.nvim?tab=readme-ov-file#usage
|
||||
if not referenceZindex then referenceZindex = 49 end
|
||||
|
||||
local bufnr = vim.api.nvim_create_buf(false, true)
|
||||
local winnr = vim.api.nvim_open_win(bufnr, false, {
|
||||
|
|
|
|||
Loading…
Reference in New Issue