mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
lsp: disable virtual lines by default
This commit is contained in:
parent
8d37d38195
commit
05eba1165f
1 changed files with 7 additions and 4 deletions
|
|
@ -50,11 +50,14 @@ do
|
||||||
---@type vim.diagnostic.Opts[]
|
---@type vim.diagnostic.Opts[]
|
||||||
local modes = {
|
local modes = {
|
||||||
{
|
{
|
||||||
virtual_text = false,
|
virtual_lines = false,
|
||||||
virtual_lines = { severity = { vim.diagnostic.severity.ERROR } },
|
},
|
||||||
|
{
|
||||||
|
virtual_lines = { severity = { vim.diagnostic.severity.ERROR }, current_line = true },
|
||||||
|
},
|
||||||
|
{
|
||||||
|
virtual_lines = { severity = { vim.diagnostic.severity.ERROR }, current_line = false },
|
||||||
},
|
},
|
||||||
{ virtual_text = false, virtual_lines = false },
|
|
||||||
{ virtual_text = true, virtual_lines = false },
|
|
||||||
}
|
}
|
||||||
vim.diagnostic.config(modes[index])
|
vim.diagnostic.config(modes[index])
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue