15 lines
380 B
Lua
15 lines
380 B
Lua
return {
|
|
filetypes = {"c","cpp","objc","objcpp"},
|
|
|
|
on_attach = vim.g.lsp_on_attach,
|
|
handlers = vim.g.lsp_handlers,
|
|
|
|
capabilities = require('cmp_nvim_lsp').default_capabilities(vim.g.lsp_capabilities),
|
|
root_dir = require"lspconfig.util".root_pattern{
|
|
"CMakeList.txt",
|
|
"compile_flags.txt",
|
|
".git",
|
|
vim.fn.getcwd()
|
|
}
|
|
}
|