blob: 12f9906c7cc73a09915e526563c0e35222112028 (
plain)
1
2
3
4
5
6
7
8
9
10
|
return {
cmd = {'android_clangd.sh', 'local' },
filetypes = {'c', 'cpp'},
root_dir = function(bufnr, cb)
-- Only return this if the files are there
if vim.fs.root(bufnr, {'Android.bp', 'compile_commands.json'}) then
cb(vim.fs.root(bufnr, {'compile_commands.json'}))
end
end,
}
|