lukas-reineke / headlines.nvim

This plugin adds horizontal highlights for text filetypes, like markdown, orgmode, and neorg.
MIT License
688 stars 28 forks source link

Bug: indented code blocks have a bad interaction with indent-blanklines #85

Open chrisgrieser opened 3 months ago

chrisgrieser commented 3 months ago

edit: There was a lengthy post here, that's mostly irrelevant, since I could reproduce the issue in a markdown file.

When there are indented code blocks, there seems to be a weird interaction with indent-blanklines. Every time the window is scrolled, the indents briefly disappear.

https://github.com/lukas-reineke/headlines.nvim/assets/73286100/1ced6f46-8024-4e1a-b7a6-ee79cb7a9dd0

The issue is more visible when using headlines to add background to a filetype with more indents. For instance, I added the codeblock-style background to the run field of GitHub action yaml files, and the issue is very noticable there:

https://github.com/lukas-reineke/headlines.nvim/assets/73286100/f43dceb6-3a73-4f66-9dd2-40a50105c7a9

(originally, I wanted to make a PR to add the yaml query, which is when I noticed this problem.)