By default the lsp has set the diagnosticLevel to Hints, i wanna set this to information level. I tried looking at various places but couldn't find much.
I am using LunarVim config if that gives extra context
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityBy default the lsp has set the diagnosticLevel to Hints, i wanna set this to information level. I tried looking at various places but couldn't find much.
I am using LunarVim config if that gives extra context
Not sure if LunarVim has a layer on top, but the minimal setup in Lua would be:
vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
vim.lsp.diagnostic.on_publish_diagnostics, {
signs = {
severity_limit = "Hint",
},
virtual_text = {
severity_limit = "Warning",
},
}
)
As you can see, you can hide the virtual text and keep the signs (which I think should be the default). There are more things you can configure, have a look at :h on_publish_diagnostics