Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[coc.vim] definition not found #31

Open
ywgrit opened this issue Oct 10, 2022 · 0 comments
Open

[coc.vim] definition not found #31

ywgrit opened this issue Oct 10, 2022 · 0 comments

Comments

@ywgrit
Copy link

ywgrit commented Oct 10, 2022

您好,在小型工程中,coc是能够正常使用的,但是我最近编译linux内核和oceanbase,coc总是找不到定义和引用。我并未修改过coc.nvim.vim,目前我检查了ccls的配置和coc的配置,未发现错误,我使用bear命令生成的compile_commands.json文件也是对的,请问我应该怎么排查这个错误呢?谢谢
目前我的coc-settting.json文件如下所示
{
// vim: syntax=jsonc
"coc.preferences.extensionUpdateCheck": "daily",
"suggest.acceptSuggestionOnCommitCharacter": true,
"suggest.timeout": 5000,
"suggest.noselect": true,
"suggest.snippetIndicator": "❄",
"suggest.completionItemKindLabels": {
"class": "",
"color": "",
"constant": "",
"default": "",
"enum": "",
"enumMember": "",
"event": "鬒",
"field": "m",
"file": "",
"folder": "",
"function": "F",
"interface": "",
"keyword": "",
"method": "f",
"module": "",
"operator": "Ψ",
"property": "",
"reference": "r",
"snippet": "",
"struct": "פּ",
"text": "",
"typeParameter": "",
"unit": "",
"value": "",
"variable": ""
},
"diagnostic.errorSign": "■",
"diagnostic.warningSign": "▲",
"diagnostic.infoSign": "●",
"diagnostic.hintSign": "●",
"diagnostic.displayByAle": false,
"diagnostic.maxWindowHeight": 10,
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": ["c", "cpp", "cuda", "objc", "objcpp"],
"rootPatterns": [".ccls", "compile_commands.json", ".git/"],
"initializationOptions": {
"cache": {
"directory": ".ccls-cache"
},
"client": {
"snippetSupport": true
},
"highlight": { "lsRanges": true }
}
},
// golang的languageserver不是ccls
"golang": {
"command": "gopls",
"rootPatterns": ["go.mod", ".git/"],
"filetypes": ["go"]
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant