dotfiles/.config/nvim/lua/lsp/servers/clangd.lua

15 lines
302 B
Lua
Raw Normal View History

2022-12-24 12:33:46 -05:00
return {
2023-04-03 09:19:12 -04:00
filetypes = {"c","cpp","objc","objcpp"},
on_attach = vim.g.lsp_on_attach,
handlers = vim.g.lsp_handlers,
capabilities = vim.g.lsp_capabilities,
root_dir = require"lspconfig.util".root_pattern{
"CMakeList.txt",
"compile_flags.txt",
".git",
vim.fn.getcwd()
}
2022-12-24 12:33:46 -05:00
}