sorawee / fmt

A code formatter for Racket
Other
74 stars 7 forks source link

Language server integration? #16

Open jackfirth opened 3 years ago

jackfirth commented 3 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 3 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)