fixing diagnostic

main
KeeganForelight 2 years ago
parent 88a520f7c0
commit fa7c2cb4d6

@ -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', '<leader>e', vim.diagnostic.open_float, opts)
vim.keymap.set('n', '<leader>gD', vim.lsp.buf.declaration, opts)
vim.keymap.set('n', '<leader>gd', vim.lsp.buf.definition, opts)
vim.keymap.set('n', '<leader>rn', vim.lsp.buf.rename, opts)

Loading…
Cancel
Save