nvim: lsp: Never insert #include directives as part of code completion for clangd

This commit is contained in:
Sanchayan Maity 2021-11-05 15:07:58 +05:30
parent 61e617e494
commit e07afd2c65
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ nvim_lsp.clangd.setup {
on_attach = on_attach,
capabilities = capabilities,
default_config = {
cmd = { "clangd", "--background-index", "--pch-storage=memory", "--clang-tidy", "--suggest-missing-includes" },
cmd = { "clangd", "--background-index", "--pch-storage=memory", "--clang-tidy", "--suggest-missing-includes", "--header-insertion=never" },
filetypes = { 'c', 'cpp' },
root_dir = function(fname)
-- We specify build/compile_commands.json as that is where the compile_commands.json