lewis6991 / satellite.nvim

Decorate scrollbar for Neovim
MIT License
542 stars 20 forks source link

`zindex` should apply to marks as well #71

Open simonmandlik opened 1 month ago

simonmandlik commented 1 month ago

Currently, zindex applies only to the scrollbar "body", not to the marks displayed on it:

image

This means that any potential text is hidden. This is especially bad when using textwidth larger than window width and many marks are displayed, e.g. from gitsigns. This is a screenshot from a latex file:

image

This is with satellite disabled:

image

So many letters are hidden.

MWE:

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/flash.nvim", opts = {} },
    -- add any other plugins here
    { "lewis6991/satellite.nvim", opts = { zindex = 999 }}
  },
})
lewis6991 commented 1 month ago

MWE

This is not.

simonmandlik commented 1 month ago

Sorry, I don't understand.

If I put the lua code into init.lua, run nvim -u init.lua, I can see the issue after inserting two paragraphs of e.g. Lorem Ipsum text