-
Notifications
You must be signed in to change notification settings - Fork 374
Open
Labels
bugSomething isn't workingSomething isn't working
Description
output.mp4
Did you check docs and existing issues?
- I have read all the snacks.nvim docs
- I have updated the plugin to the latest version before submitting this issue
- I have searched the existing issues of snacks.nvim
- I have searched the existing issues of plugins related to this issue
Neovim version (nvim -v)
v0.11.5
Operating system/version
Linux 6.17.9-arch1-1
Describe the bug
When using the indent module of the snacks.nvim plugin with two split windows, a visual glitch occurs. If indent lines are visible in one window and you move the cursor to the second window, scrolling the first (now non-focused) window using a touchpad causes the indent lines to be drawn incorrectly, overlapping the text.
Steps To Reproduce
1. Open Neovim with the snacks.nvim plugin installed and the indent module enabled.
2. Create two vertical splits (e.g., :vsplit).
3. Ensure the indent lines are visible in the left window.
4. Move the cursor to the right window (so the left window loses focus).
5. Using a touchpad (or trackpad), scroll the content of the left (non-focused) window.
6. Observe the visual corruption: the indent lines are drawn on top of the text instead of behind it.
Expected Behavior
The indent lines in the non-focused window should either:
Remain static and correctly positioned behind the text when the window is scrolled, or
Be temporarily hidden while scrolling the non-focused window.
Repro
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/snacks.nvim", opts = { indent = {} } },
},
})Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working