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:
parent
d6cd6be63b
commit
d3ee056f96
@ -70,17 +70,28 @@ lspconfig.pyls.setup {
|
|||||||
pyls_mypy = {enabled = true}
|
pyls_mypy = {enabled = true}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
flags = {
|
||||||
|
debounce_text_changes = 500,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
lspconfig.clangd.setup{
|
lspconfig.clangd.setup{
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
filetypes = { "c", "cpp", "cc" }
|
filetypes = { "c", "cpp", "cc" },
|
||||||
|
flags = {
|
||||||
|
debounce_text_changes = 500,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
-- set up vim-language-server
|
-- 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.
|
-- Change diagnostic signs.
|
||||||
vim.fn.sign_define('LspDiagnosticsSignError', { text = "✗", texthl = "LspDiagnosticsDefaultError" })
|
vim.fn.sign_define('LspDiagnosticsSignError', { text = "✗", texthl = "LspDiagnosticsDefaultError" })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user