Our great sponsors
-
trouble.nvim
🚦 A pretty diagnostics, references, telescope results, quickfix and location list to help you solve all the trouble your code is causing.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I use the Trouble plugin to show my diagnostics errors.
You'll need to write a function (you don't need a handler) to print in the statusline. If someone does it you can add it to the lspconfig wiki. I've been fleshing out a page https://github.com/neovim/nvim-lspconfig/wiki/UI-customization. This kinda does what you want I think, but the print is not perfect yet (need to use :mess to see the whole thing:
You can use this code I wrote for that. You then hook it up like this.