clangd root dir detection with build_nvim
This commit is contained in:
parent
89b1d53451
commit
827adacc68
@ -129,6 +129,16 @@ require('lspconfig')['clangd'].setup {
|
||||
capabilities = capabilities,
|
||||
on_attach = on_attach,
|
||||
cmd = { 'clangd', '--compile-commands-dir=build_nvim' },
|
||||
root_dir = require('lspconfig').util.root_pattern(
|
||||
'.clangd',
|
||||
'.clang-tidy',
|
||||
'.clang-format',
|
||||
'compile_commands.json',
|
||||
'compile_flags.txt',
|
||||
'configure.ac',
|
||||
'.git',
|
||||
'build_nvim'
|
||||
)
|
||||
}
|
||||
-- require('clangd_extensions').setup({
|
||||
-- server = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user