This commit is contained in:
2025-10-31 21:40:45 -04:00
parent 545e389061
commit 03602ea65f

View File

@@ -64,7 +64,7 @@ vim.api.nvim_create_autocmd("FileType", {
vim.lsp.start { vim.lsp.start {
name = "clangd", name = "clangd",
cmd = { "clangd", "--background-index", "--clang-tidy", "--completion-style=detailed", "--header-insertion=iwyu" }, cmd = { "clangd", "--background-index", "--clang-tidy", "--completion-style=detailed", "--header-insertion=iwyu" },
root_dir = vim.fs.dirname(vim.fs.find({ ".git", "Makefile", "CMakeLists.txt" }, { upward = true })[1]), root_dir = vim.fs.dirname(vim.fs.find({ ".git", "Makefile", "makefile", "README" }, { upward = true })[1]),
} }
end, end,
}) })