Multi-line comments can contain a lot of non-standard indentations which might lead indent-o-matic to make wrong guesses (as explained here by NMAC427)
To fix this, it's possible to either:
Hook into Neovim's syntax detection since it already detect comments (ideal solution, possible through the vim.fn.synID* functions)
Use the same approach as guess-indent: look up what the standard delimiters for multi-line comments are and skip anything between those
I'll probably try to tackle this issue in a few weeks but feel free to try your hands at it if you want to! :)
Multi-line comments can contain a lot of non-standard indentations which might lead
indent-o-matic
to make wrong guesses (as explained here by NMAC427)To fix this, it's possible to either:
vim.fn.synID*
functions)I'll probably try to tackle this issue in a few weeks but feel free to try your hands at it if you want to! :)