Vim: coc: Switch to clangd + syntax highlight

This commit is contained in:
Robert Kmiec
2020-07-02 09:30:49 +02:00
parent c301eb3938
commit 4fb93fa358
2 changed files with 3 additions and 11 deletions

View File

@@ -1,16 +1,7 @@
{ {
"diagnostic.checkCurrentLine": true, "diagnostic.checkCurrentLine": true,
"diagnostic.joinMessageLines": true, "diagnostic.joinMessageLines": true,
"languageserver": { "clangd": {
"ccls": { "semanticHighlighting": true
"command": "ccls",
"filetypes": ["c", "cpp", "objc", "objcpp"],
"rootPatterns": [".ccls", "compile_commands.json", ".vim/", ".git/", ".hg/"],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
}
} }
} }

View File

@@ -30,6 +30,7 @@ Plugin 'VundleVim/Vundle.vim'
"Plugin 'lyuts/vim-rtags' "Plugin 'lyuts/vim-rtags'
"Plugin 'JBakamovic/cxxd-vim' "Plugin 'JBakamovic/cxxd-vim'
Plugin 'neoclide/coc.nvim' Plugin 'neoclide/coc.nvim'
Plugin 'jackguo380/vim-lsp-cxx-highlight'
" }}} " }}}
" Mappings {{{ " Mappings {{{