echasnovski / mini.nvim

Library of 40+ independent Lua modules improving overall Neovim (version 0.8 and higher) experience with minimal effort
MIT License
4.45k stars 171 forks source link

[help wanted] How to keep extmark from removed after commenting code #958

Closed shellRaining closed 3 weeks ago

shellRaining commented 3 weeks ago

hello, very thanks for your nice work! mini.indentscope has cool effect, and provide many inspiration when I wrote my plugin. I am writing a indent (chunk) plugin, and encounter a bug, when comment a line which has extmark, the extmark was remove, detail can be seen here https://github.com/shellRaining/hlchunk.nvim/issues/109

I found that mini.indentscope also has lazy feat and can keep extmark after commenting a line, But I feel very confused about how he achieved this effect.

I originally wanted to post on Reddit, but it seems that my account and IP have been banned. I'm sorry if this has caused any inconvenience.