sorawee / fmt

A code formatter for Racket
Other
72 stars 6 forks source link

Language server integration? #16

Open jackfirth opened 2 years ago

jackfirth commented 2 years ago

Is integration with the racket langserver a goal? I'd really like for the langserver to come with autoformatting support out of the box.

sorawee commented 2 years ago

I didn't have racket langserver in mind when I started this project, but I hope my tool will provide an interface that is general enough so that stuff like racket langserver and code formatting aggregators (see #7) can use.

It looks like racket langserver is needed to be modified though, as it's currently hard coded to use framework's autoindenter as a formatter (https://github.com/jeapostrophe/racket-langserver/blob/master/text-document.rkt#L435)