fix(indent): improve indentation#1766
Conversation
|
changing This patch also breaks automatic dedent of the |
Okay, my apologies. I forgot exactly why I changed it and it must have been because it wasn't working for me due to using the main branch of nvim-treesitter. I'm not sure how you guys want to handle transitioning from compatibility with the master to compatibility with the main branch of nvim-treesitter, so let me know.
I don't experience this. For example, properly dedents to the following after using Did I understand your concern correctly? |
|
Sorry, I misunderstood what you meant by the dedenting. Let me update it to dedent the tags properly. |
assuming |
|
Let me know if that works for you. I did For instance, |
This PR fixes some issues with the indentexpr provided by the indent module, primarily with how it handles code blocks. To be honest, I made these changes a while ago and left it alone after getting it to work how I liked because I was busy with other things. So I forgot the exact behavior of the issues I was fixing... But a rough recollection is
Sorry for the little amount of detail. I'm pushing this in case it helps anyone who is frustrated with the behavior of the current indentation. If interested, please try it out :)