elvish icon indicating copy to clipboard operation
elvish copied to clipboard

elvishfmt or formatter support with lsp?

Open aca opened this issue 2 years ago • 1 comments

There's

  • treesitter
  • lsp

But couldn't find formatter for elvish, is there any work done for this?

aca avatar Jan 23 '23 15:01 aca

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.

xiaq avatar Dec 31 '24 20:12 xiaq