From 98a005d6f3e39a8933b9f2390eceee7ed3c6ea0a Mon Sep 17 00:00:00 2001 From: David JULIEN Date: Sun, 23 May 2021 00:49:37 +0200 Subject: [PATCH] feat: clangd setup --- .config/nvim/lua/lsp/c.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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" + } +}