errata-ai / vale-ls

:zap: An implementation of the Language Server Protocol (LSP) for the Vale command-line tool.
MIT License
67 stars 4 forks source link

BUG(Neovim): Late diagnostic updates interfere with autosave and autoformat #11

Open mystilleef opened 6 months ago

mystilleef commented 6 months ago

The Vale LSP on Neovim is peculiar in that it only updates diagnostics in the buffer after modified files are saved to disk.

Other LSP servers on Neovim usually update diagnostics in near real-time, or when the Editor exits Insert mode.

Vale's LSP behavior breaks things like autosave or autoformat, which are often configured to run when no diagnostic errors are found in the buffer.

It'd be nice to have real-time diagnostics on Neovim to prevent the issue above.