update basedpyright and vim.diagnostic config

This commit is contained in:
kyasuda
2025-08-19 14:14:57 -07:00
parent 180160fee1
commit a53991c53d
6 changed files with 117 additions and 63 deletions

View File

@@ -0,0 +1,17 @@
return {
"sontungexpt/better-diagnostic-virtual-text",
event = "LspAttach",
opts = {
ui = {
wrap_line_after = 150, -- wrap the line after this length to avoid the virtual text is too long
left_kept_space = 3, --- the number of spaces kept on the left side of the virtual text, make sure it enough to custom for each line
right_kept_space = 3, --- the number of spaces kept on the right side of the virtual text, make sure it enough to custom for each line
arrow = "",
up_arrow = "",
down_arrow = "",
above = false, -- the virtual text will be displayed above the line
},
priority = 2003, -- the priority of virtual text
inline = true,
},
}