vim-lsc icon indicating copy to clipboard operation
vim-lsc copied to clipboard

Please use clangd to replace cquery in the wiki lsp server example for C/C++

Open adam900710 opened this issue 5 years ago • 1 comments

Example using external compile_commands directory, and remove the header insertion decorators to remove the strange dot.

let g:lsc_server_commands = {
 \ 'c': 'clangd --compile-commands-dir=~/compile_commands.d/kernel/ --header-insertion-decorators=false',
 \ 'cpp': 'clangd --compile-commands-dir=~/compile_commands.d/kernel/ --header-insertion-decorators=false',
 \ }

Cquery is not even provided by official repos in some distros, and clangd has much better features. (And the wiki already says clang, but still using cquery)

adam900710 avatar Sep 10 '20 01:09 adam900710

The wiki is open for anyone to edit. I replaced the cquery section with what I use for clangd. Feel free to improve on it if you want.

averms avatar Oct 20 '20 04:10 averms