local sev = vim.diagnostic.severity vim.diagnostic.config({ severity_sort = true, update_in_insert = false, float = { border = 'rounded', source = true, }, signs = { text = { [sev.ERROR] = 'E', [sev.WARN] = 'W', [sev.INFO] = 'I', [sev.HINT] = 'H', }, }, }) -- Nvim already binds ]d / [d to jump and d to show the diagnostic under -- the cursor; these put the same actions on so which-key lists them. vim.keymap.set('n', 'dd', vim.diagnostic.open_float, { desc = 'Show diagnostic' }) vim.keymap.set('n', 'dq', vim.diagnostic.setqflist, { desc = 'Diagnostics to quickfix' })