LSP support for formating

LSP supports formatting code, both on demand and automatically on save.

Both clangd and serve-d (which I’m working on an extension for, and have working but am waiting for a new release of serve-d which includes bug fixes) can automatically format code. It would be nice have Nova pick up on this and enable it directly, so that I didn’t have to write code for this.

I think the gopls server for Go can also do this.

3 Likes