From a55e972ecb1c7ca5595b783502eb37942824f7f3 Mon Sep 17 00:00:00 2001 From: Niverton Date: Tue, 9 Jan 2024 11:45:53 +0100 Subject: [PATCH] Disable clangd header insertions --- lua/plugins/20-lsp.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/plugins/20-lsp.lua b/lua/plugins/20-lsp.lua index 6fac48a..e9b2061 100644 --- a/lua/plugins/20-lsp.lua +++ b/lua/plugins/20-lsp.lua @@ -14,5 +14,11 @@ return { }, -- mappings to be set up on attaching of a language server mappings = {}, + ---@diagnostic disable: missing-fields + config = { + clangd = { + cmd = { "clangd", "--header-insertion=never"}, -- Disable auto includes + }, + }, }, }