summaryrefslogtreecommitdiff
path: root/ale_linters/c/ccls.vim
blob: 5dc2339fd1c29efc1967b4537ea08bb060314f11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
" 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('c_ccls_executable', 'ccls')
call ale#Set('c_ccls_init_options', {})

call ale#linter#Define('c', {
\   'name': 'ccls',
\   'lsp': 'stdio',
\   'executable_callback': ale#VarFunc('c_ccls_executable'),
\   'command': '%e',
\   'project_root_callback': 'ale#handlers#ccls#GetProjectRoot',
\   'initialization_options_callback':ale#VarFunc('c_ccls_init_options'),
\})