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 5dd9d1c6d0
commit dd3bfc74fa

View file

@ -15,3 +15,9 @@ vim.diagnostic.config({
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