AdaCore / AdaCore/ada_language_server
provide more control over formatting.
@joaopsazevedo is already working on this.
Since Dec 14, 2022.
- Dominant language
- Ada
- Stars
- 304
- Forks
- 70
- PR merge metrics
- No merged PRs in 30d
Description
ada_language_server uses the gnatpp code to do formatting. That code supports several options that control the formatting. In particular, some combination of settings results in "just indent", which is what Emacs ada-mode wants when the user invokes indent-line.
So it would be nice if there was a way to pass those options to the server, perhaps via an LSP extension command ada_format_options.
In addition, the gnatpp code has a set of formatting rules that can be specified in a file (at least, it did last time I looked; it seems that feature was only intended for internal development). It would be nice to allow the user to specify a file to replace the formatting rules; then we could implement any formatting style using ada_language_server.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.