nvim: lsp: disable header insert in clangd

This commit is contained in:
Fernando Schauenburg 2025-03-17 20:02:08 +01:00
parent 9df850751b
commit 20e99cbeed

View file

@ -43,6 +43,11 @@ local lsp_on_init = function(client)
end
local server_opts = setmetatable({
clangd = function(opts)
return vim.tbl_deep_extend("force", opts, {
cmd = { "clangd", "--header-insertion=never" },
})
end,
lua_ls = function(opts)
return vim.tbl_deep_extend("force", opts, {
settings = {