New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cycling yaml indentations #50
Comments
That's a great idea. The only caveat is that yaml-ts-mode does not have an indentation engine at all! I need to change combobulate so it'll work on non-ts-modes, then you can at least use the third-party yaml-mode to do indentation and then combobulate can maybe use that. |
Actually there is yaml-pro that achieves similar results using treesit in the functions |
And the non-ts yaml-mode can already cycle indentations :). Perhaps we should spend some effort on giving yaml-ts-mode a basic indentation function using tree-sitter first? |
Indeed. It shouldn't take more than a few hours to write one, to be honest. Using Combobulate's query builder to help match things should make things easier! |
For indentation in |
It would be nice to have a function similar to
combobulate-python-indent-for-tab-command
in yaml (probably calledcombobulate-yaml-indent-for-tab-command
).I am not too familiar with neither combobulate nor treesit yet, but if you have some pointers about how to implement it I could give it a try.
The text was updated successfully, but these errors were encountered: