summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2019-04-27 18:22:15 +0200
committeryushyin <yushyin@saga>2019-04-27 18:22:15 +0200
commit587c5fb360426b32b4da5ece9eeb04e0d0e925fe (patch)
tree4772c04105d5f4dd443c752e8784afaf35f03f5d
parent2124b7f876555cae95019488ffe337720e0fafcd (diff)
downloaddotfiles-587c5fb360426b32b4da5ece9eeb04e0d0e925fe.tar.gz
dotfiles-587c5fb360426b32b4da5ece9eeb04e0d0e925fe.tar.xz
Vim: Change the c/c++ LSP server from cquery to ccls
-rw-r--r--vim/vimrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 8253537..2db09f5 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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