kaarmu / typst.vim

Vim plugin for Typst
MIT License
291 stars 25 forks source link

Correct comment indentation and dedent regex #89

Closed sh1l0h closed 6 months ago

sh1l0h commented 7 months ago

This PR introduces a wrapper function without arguments for TypstIndent to enhance performance, as recommended in the documentation. Additionally, it ensures that comment lines are properly ignored during indentation computation. And, it addresses a bug related to the dedent regex, ensuring correct behavior even when characters follow ) ] }.

kaarmu commented 6 months ago

Thank you for your contribution!!