nix-config/home/vim/plugin/settings/diagnostics.vim

21 lines
557 B
VimL
Raw Normal View History

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