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:
parent
5dd9d1c6d0
commit
dd3bfc74fa
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue