LanguageClient-neovim icon indicating copy to clipboard operation
LanguageClient-neovim copied to clipboard

Add support for diagnostics display funcref for more flexible integration

Open martskins opened this issue 5 years ago • 1 comments

This PR provides a config option for a function name to be used as a callback for the publish diagnostics call. What this does is enable us to integrate with external plugins that are used to display diagnostics, such as dense-analysis/ale. The documentation includes an example of how to set that up.

Note that the virtual texts will still be displayed if configured.

Fixes #800 and #852.

martskins avatar Oct 09 '20 16:10 martskins

This one is a little more involved or disruptive so I'll leave it to you to decide @autozimu, but I think it's a good way to integrate with ale. I think in our case, given that the server publishes the diagnostics when it pleases, we don't need to answer the ALEWantResults autocmd, so this should be enough.

martskins avatar Oct 09 '20 17:10 martskins