coc-nvim

配置文件

:CocConfig

~/.config/nvim/coc-settings.json

coc-settings.json

{
  "languageserver": {
    "ccls": {
      "command": "ccls",
      "filetypes": ["c", "cpp","hpp","h", "cuda", "objc", "objcpp"],
      "rootPatterns": [".ccls",".git/"],
      "initializationOptions": {
        "compilationDatabaseDirectory":"build",
        "cache": {
          "directory": ".ccls-cache"
        },
        "client": {
          "snippetSupport": true
        }
      }
    }
  }
}

.ccls

%compile_commands.json

%h -x
%h c++-header

%hpp

posted @ 2023-03-31 18:56  fndefbwefsowpvqfx  阅读(51)  评论(0编辑  收藏  举报