changed virtual lines

This commit is contained in:
Oliver Hartmann 2023-08-18 09:03:24 +02:00
parent f631f2ad86
commit 3e818ddef9
3 changed files with 22 additions and 4 deletions

View File

@ -1,6 +1,10 @@
return {
'dgagn/diagflow.nvim',
opts = {
scope = 'line'
}
scope = 'line',
placement = 'inline',
text_align = 'left',
inline_padding_left = 5,
},
enabled = false
}

View File

@ -0,0 +1,14 @@
return {
'luozhiya/lsp-virtual-improved.nvim',
event = { 'LspAttach' },
config = function()
require('lsp-virtual-improved').setup()
local diagnostics = {
virtual_text = false, -- Disable builtin virtual text diagnostic.
virtual_improved = {
current_line = 'only',
},
}
vim.diagnostic.config(diagnostics)
end,
}

View File

@ -326,8 +326,8 @@ return {
capabilities = capabilities,
})
-- vim.diagnostic.config({ virtual_text = false })
vim.diagnostic.config({ virtual_text = false, virtual_lines = false })
vim.diagnostic.config({ virtual_text = true})
-- vim.diagnostic.config({ virtual_text = false, virtual_lines = false })
-- vim.diagnostic.config({ virtual_text = false, virtual_lines = { only_current_line = true } })
end,
event = 'VeryLazy'