diff --git a/.config/nvim/lua/lsp/c.lua b/.config/nvim/lua/lsp/c.lua index 01f74af..e9277c0 100644 --- a/.config/nvim/lua/lsp/c.lua +++ b/.config/nvim/lua/lsp/c.lua @@ -3,4 +3,11 @@ -- License : GPLv3 -- Description : clangd config file for lsp -require("lspconfig").clangd.setup {} +require("lspconfig").clangd.setup { + cmd = { "clangd", + "--background-index", + "--suggest-missing-includes", + "--clang-tidy", + "--header-insertion=iwyu" + } +}