blob: 4accf3678fadde16508bfe290b8636d32c38961b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
if executable('/usr/local/llvm10/bin/clangd')
augroup lsp_clangd
autocmd!
autocmd User lsp_setup call lsp#register_server({
\ 'name': 'clangd',
\ 'cmd': {server_info->['clangd']},
\ 'whitelist': ['c', 'cpp', 'objc', 'objcpp']
\ })
autocmd FileType c setlocal omnifunc=lsp#complete
autocmd FileType cpp setlocal omnifunc=lsp#complete
autocmd FileType objc setlocal omnifunc=lsp#complete
autocmd FileType objcpp setlocal omnifunc=lsp#complete
augroup end
endif
let g:lsp_signs_priority = 10
|