mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
19 lines
568 B
VimL
19 lines
568 B
VimL
let s:filetypes = ['c', 'cpp', 'objc', 'objcpp']
|
|
let g:coc_filetypes += s:filetypes
|
|
|
|
let g:coc_user_config['languageserver.ccls'] = {
|
|
\ 'filetypes': s:filetypes,
|
|
\ 'command': 'ccls',
|
|
\ 'rootPatterns': ['.ccls', 'compile_commands.json', '.vim/', '.git/', '.hg/'],
|
|
\ 'initializationOptions': {
|
|
\ 'cache': {
|
|
\ 'directory': '/tmp/ccls',
|
|
\ },
|
|
\ },
|
|
\ }
|
|
|
|
" let g:coc_user_config['languageserver.clangd'] = {
|
|
" \ 'filetypes': s:filetypes,
|
|
" \ 'command': 'clangd',
|
|
" \ 'rootPatterns': ['compile_flags.txt', 'compile_commands.json', '.vim/', '.git/', '.hg/'],
|
|
" \ }
|