1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

Add debounce time for nvim-lsp

This commit is contained in:
jdhao 2021-07-04 04:37:29 +08:00
parent d6cd6be63b
commit d3ee056f96

View File

@ -70,17 +70,28 @@ lspconfig.pyls.setup {
pyls_mypy = {enabled = true}
}
}
},
flags = {
debounce_text_changes = 500,
}
}
lspconfig.clangd.setup{
on_attach = on_attach,
capabilities = capabilities,
filetypes = { "c", "cpp", "cc" }
filetypes = { "c", "cpp", "cc" },
flags = {
debounce_text_changes = 500,
}
}
-- set up vim-language-server
lspconfig.vimls.setup{ on_attach = on_attach }
lspconfig.vimls.setup{
on_attach = on_attach,
flags = {
debounce_text_changes = 500,
}
}
-- Change diagnostic signs.
vim.fn.sign_define('LspDiagnosticsSignError', { text = "", texthl = "LspDiagnosticsDefaultError" })