vim.lsp.config("clangd", { cmd = { vim.fn.stdpath("data") .. "/mason/bin/clangd", "--background-index", "--clang-tidy", }, filetypes = { "c", "cpp", "objc", "objcpp" }, root_markers = { "compile_commands.json", "compile_flags.txt", "CMakeLists.txt", "meson.build", ".git", }, on_attach = function(client, bufnr) require("lsp_signature").on_attach({ bind = true, floating_window = true, hint_enable = true, handler_opts = { border = "rounded", }, }, bufnr) end, }) vim.lsp.enable("clangd")