1
0
Fork 0
mirror of synced 2024-11-26 18:55:34 -05:00
ultimate-vim/sources_non_forked/ale/ale_linters/cpp/ccls.vim

16 lines
600 B
VimL
Raw Normal View History

2018-09-30 16:58:57 -04:00
" Author: Ye Jingchen <ye.jingchen@gmail.com>, Ben Falconer <ben@falconers.me.uk>, jtalowell <jtalowell@protonmail.com>
" Description: A language server for C++
call ale#Set('cpp_ccls_executable', 'ccls')
call ale#Set('cpp_ccls_init_options', {})
2020-12-04 16:15:32 -05:00
call ale#Set('c_build_dir', '')
2018-09-30 16:58:57 -04:00
call ale#linter#Define('cpp', {
\ 'name': 'ccls',
\ 'lsp': 'stdio',
2019-03-08 06:04:56 -05:00
\ 'executable': {b -> ale#Var(b, 'cpp_ccls_executable')},
2018-09-30 16:58:57 -04:00
\ 'command': '%e',
2019-03-08 06:04:56 -05:00
\ 'project_root': function('ale#handlers#ccls#GetProjectRoot'),
2020-12-04 16:15:32 -05:00
\ 'initialization_options': {b -> ale#handlers#ccls#GetInitOpts(b, 'cpp_ccls_init_options')},
2018-09-30 16:58:57 -04:00
\})