Add support for pruner formatter#856
Conversation
|
Ehh, I'm not entirely sure why the typecheck job is failing. It doesn't look like the error is coming from my code. How can I run this locally? I can't really find instructions. |
|
Awesome! I was initially excited by the possibility of formatting code snippets in embedded sections using conform, but my implementation ended up not working as well as I'd hoped in all cases. Hopefully your solution works better! |
Yea I initially tried to implement my own version of the conform injected formatter to solve some of the problems but it just proved to be very hard to do with Neovim as a base. Too many editor-geared behaviours that get in the way. This needed to be done in a dedicated binary. |
Pruner is a new formatter built by me which adds first-class support for formatting embedded languages. It uses treesitter and language injections to find injected regions and then shells out the the appropriate languages' formatter.
Similar to and inspired by conform.nvim itself!