Improve LSP diagnostic messages

This commit is contained in:
Fábio André Damas 2025-08-06 17:12:25 +01:00
parent 5aa7a81b86
commit 358526bdb5
3 changed files with 28 additions and 6 deletions

View file

@ -45,9 +45,16 @@ vim.api.nvim_create_autocmd('LspAttach', {
})
vim.diagnostic.config({
virtual_lines = {
current_line = true
}
virtual_lines = false,
virtual_text = false,
signs = {
text = {
[vim.diagnostic.severity.ERROR] = "󰅙",
[vim.diagnostic.severity.WARN] = "",
[vim.diagnostic.severity.HINT] = "󰌵",
[vim.diagnostic.severity.INFO] = "",
},
},
})
return {

View file

@ -0,0 +1,14 @@
return {
"rachartier/tiny-inline-diagnostic.nvim",
event = "VeryLazy",
priority = 1000,
opts = {
options = {
show_source = {
enabled = true,
-- if_many = true,
},
use_icons_from_diagnostic = true,
}
},
}