Darazaki / indent-o-matic

Dumb automatic fast indentation detection for Neovim written in Lua
MIT License
176 stars 13 forks source link

Fix the order of arguments in the Treesitter multiline function #19

Closed axelvc closed 1 year ago

axelvc commented 1 year ago

I just inverted the order of the arguments to get the right line node. The current behaviour always gets the first line node.

Darazaki commented 1 year ago

Thanks for pointing it out! That was a dumb mistake on my part

I'll have to try to implement some kind of automated testing to avoid having these kind of bugs again