home: vim: show diagnostics on hover

Ideally, I want the following features:
* diagnostic icons in the sign column always,
* virtual text on the current line only
* switch to hover window and/or lsp_lines display through a mapping
This commit is contained in:
Bruno BELANYI 2022-02-26 12:53:04 +01:00
parent fba2403bf3
commit 9caf296d52

View file

@ -15,3 +15,9 @@ vim.diagnostic.config({
severity_sort = true, severity_sort = true,
}) })
EOF EOF
augroup DiagnosticsHover
autocmd!
" Show diagnostics on "hover"
autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})
augroup END