Skip to content

Commit

Permalink
fix: backdrop zindex higher than scrollbars
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Jul 25, 2024
1 parent 8fff0ac commit a74ef24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/tinygit/shared/backdrop.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ function M.new(referenceBuf, referenceZindex)
-- `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()
if not referenceZindex then referenceZindex = 10 end
-- 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, {
Expand Down

0 comments on commit a74ef24

Please sign in to comment.