elvish
elvish copied to clipboard
elvishfmt or formatter support with lsp?
There's
- treesitter
- lsp
But couldn't find formatter for elvish, is there any work done for this?
Implementation ought to be more or less straightforward - taking a parse tree and re-assembling the pieces into a string. We can do fuzz testing to ensure that the post-fmt and pre-fmt texts generate the same AST.
What needs some design is defining the actual style the formatter should output.