|
|
|
@ -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)
|
|
|
|
|