diff --git a/config/init.lua b/config/init.lua index dd1c528..b9f8678 100644 --- a/config/init.lua +++ b/config/init.lua @@ -93,8 +93,11 @@ vim.diagnostic.config({ signs = true, underline = true, update_in_insert = false, - severity_sort = true, + severity_sort = false, }) + +vim.o.updatetime = 250 + vim.api.nvim_create_autocmd("CursorHold", { buffer = bufnr, callback = function() @@ -111,6 +114,7 @@ vim.api.nvim_create_autocmd("CursorHold", { }) -- lsp mappingsd +vim.keymap.set('n', 'e', vim.diagnostic.open_float, opts) vim.keymap.set('n', 'gD', vim.lsp.buf.declaration, opts) vim.keymap.set('n', 'gd', vim.lsp.buf.definition, opts) vim.keymap.set('n', 'rn', vim.lsp.buf.rename, opts)