Bruno BELANYI
b9e5273672
I like the hovering behaviour better, it's less "in your face". I might revisit the idea in the future, as a toggled mapping.
21 lines
557 B
VimL
21 lines
557 B
VimL
lua << EOF
|
|
vim.diagnostic.config({
|
|
-- Disable virtual test next to affected regions
|
|
virtual_text = false,
|
|
-- Show diagnostics signs
|
|
signs = true,
|
|
-- Underline offending regions
|
|
underline = true,
|
|
-- Do not bother me in the middle of insertion
|
|
update_in_insert = false,
|
|
-- Show highest severity first
|
|
severity_sort = true,
|
|
})
|
|
EOF
|
|
|
|
augroup DiagnosticsHover
|
|
autocmd!
|
|
" Show diagnostics on "hover"
|
|
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
|
|
augroup END
|