Prevent clang from adding headers
This commit is contained in:
parent
3dbf38f875
commit
513d192548
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
.netrwhist
|
.netrwhist
|
||||||
|
spell
|
||||||
|
@ -9,7 +9,10 @@ local capabilities = cmp_nvim_lsp.default_capabilities({snippetSupport = false})
|
|||||||
-- nvim-lspconfig
|
-- nvim-lspconfig
|
||||||
local nvim_lspconfig = require('lspconfig')
|
local nvim_lspconfig = require('lspconfig')
|
||||||
if vim.fn.executable('clangd') == 1 then
|
if vim.fn.executable('clangd') == 1 then
|
||||||
nvim_lspconfig.clangd.setup({capabilities = capabilities})
|
nvim_lspconfig.clangd.setup({
|
||||||
|
capabilities = capabilities,
|
||||||
|
cmd = {'clangd', '--header-insertion=never'},
|
||||||
|
})
|
||||||
end
|
end
|
||||||
if vim.fn.executable('gopls') == 1 then
|
if vim.fn.executable('gopls') == 1 then
|
||||||
nvim_lspconfig.gopls.setup({capabilities = capabilities})
|
nvim_lspconfig.gopls.setup({capabilities = capabilities})
|
||||||
|
Loading…
Reference in New Issue
Block a user