configure dap for c++

This commit is contained in:
2026-02-05 14:53:21 +01:00
parent 3f61b7c994
commit 90f7ae975d
3 changed files with 66 additions and 49 deletions

View File

@@ -176,6 +176,7 @@ return {
vim.lsp.config('clangd', {
capabilities = capabilities,
on_attach = lsp_attach,
filetypes = { 'c', 'cpp', 'h' },
cmd = { "clangd", '--background-index', '--clang-tidy' }
})
vim.lsp.enable({ 'ts_ls', 'vue_ls', 'clangd' })