If you're tired of having a lot of diagnoses appearing on your screen at the same time,
you've come to the right place.
Virtual.nvim allows you to display only the virtual text on your current line for the severities you want
To install, use your plugin manager, no need to call any setup function here.
use "vzytoi/virtual.nvim"
To set it up, simply call the grab function at the location shown below.
In this example, the virtual lines will always be displayed for errors
but virtual.nvim will take care of displaying errors of lower severity (hint, warning, info)
vim.diagnostic.config({
virtual_text = {
severity = require('virtual').grab {
min = vim.diagnostic.severity.ERROR,
}
}
})