diff options
author | yushyin <yushyin@saga> | 2019-04-27 18:22:15 +0200 |
---|---|---|
committer | yushyin <yushyin@saga> | 2019-04-27 18:22:15 +0200 |
commit | 587c5fb360426b32b4da5ece9eeb04e0d0e925fe (patch) | |
tree | 4772c04105d5f4dd443c752e8784afaf35f03f5d | |
parent | 2124b7f876555cae95019488ffe337720e0fafcd (diff) | |
download | dotfiles-587c5fb360426b32b4da5ece9eeb04e0d0e925fe.tar.gz dotfiles-587c5fb360426b32b4da5ece9eeb04e0d0e925fe.tar.xz |
Vim: Change the c/c++ LSP server from cquery to ccls
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -103,12 +103,12 @@ if dein#tap('vim-addon-local-vimrc') let g:local_vimrc = {'names':['.lvimrc'],'hash_fun':'LVRHashOfFile'} endif if dein#tap('vim-lsp') - if executable('cquery') + if executable('ccls') au User lsp_setup call lsp#register_server({ - \ 'name': 'cquery', - \ 'cmd': {server_info->['cquery']}, + \ 'name': 'ccls', + \ 'cmd': {server_info->['ccls']}, \ 'root_uri': {server_info->lsp#utils#path_to_uri(lsp#utils#find_nearest_parent_file_directory(lsp#utils#get_buffer_path(), 'compile_commands.json'))}, - \ 'initialization_options': { 'cacheDirectory': '/tmp/cquery/cache' }, + \ 'initialization_options': {'cache': {'directory': '/tmp/ccls/cache' }}, \ 'whitelist': ['c', 'cpp', 'objc', 'objcpp'], \ }) endif |