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
fba2403bf3
commit
9caf296d52
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue