mirror of
https://github.com/dense-analysis/ale
synced 2024-12-23 14:45:29 +00:00
15 lines
546 B
VimL
15 lines
546 B
VimL
" 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', {})
|
|
|
|
call ale#linter#Define('cpp', {
|
|
\ 'name': 'ccls',
|
|
\ 'lsp': 'stdio',
|
|
\ 'executable': {b -> ale#Var(b, 'cpp_ccls_executable')},
|
|
\ 'command': '%e',
|
|
\ 'project_root': function('ale#handlers#ccls#GetProjectRoot'),
|
|
\ 'initialization_options': {b -> ale#Var(b, 'cpp_ccls_init_options')},
|
|
\})
|