config/nvim/lua/lsp/config.lua (view raw)
1vim.diagnostic.config({
2 virtual_text = false,
3 signs = true,
4 underline = true,
5 update_in_insert = true,
6 severity_sort = false,
7})
8
9-- hover for diagnostic
10vim.opt.updatetime = 250
11vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(bor, {focus=false, border='rounded'})]]