shellRaining / hlchunk.nvim

This is the lua implementation of nvim-hlchunk, you can use this neovim plugin to highlight your indent line and the current chunk (context) your cursor stayed
MIT License
627 stars 31 forks source link

hlchunk clobbers listchars `{tab, nbsp, trail}` #58

Open pauldesmondparker opened 1 year ago

pauldesmondparker commented 1 year ago

Is your feature request related to a problem? Please describe.

[!IMPORTANT] TL;DR hlchunk clobbers special listchars.

I highlight unexpected, but usually invisible, characters with the use of explicit listchars for tab, nbsp, and trail. However, whenever hlchunk is engaged in a block it clobbers listchars.

Describe the solution you'd like I'd like to see hlchunk respect listchars {tab, nbsp}, or have a mechanism to recreate this treatment inside blank setup.

Describe alternatives you've considered I've tried to set blank = { enable = false }, but it's spotty. Tabs will show after the chunk line, but not before.

Additional context image

shellRaining commented 1 year ago

Okay, thank you for your suggestion. I will consider how to implement it~