mirror of
https://github.com/dense-analysis/ale
synced 2024-12-21 05:43:05 +00:00
4fbfcc9dec
Fixes #2621
16 lines
588 B
VimL
16 lines
588 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('c_ccls_executable', 'ccls')
|
|
call ale#Set('c_ccls_init_options', {})
|
|
call ale#Set('c_build_dir', '')
|
|
|
|
call ale#linter#Define('c', {
|
|
\ 'name': 'ccls',
|
|
\ 'lsp': 'stdio',
|
|
\ 'executable': {b -> ale#Var(b, 'c_ccls_executable')},
|
|
\ 'command': '%e',
|
|
\ 'project_root': function('ale#handlers#ccls#GetProjectRoot'),
|
|
\ 'initialization_options': {b -> ale#handlers#ccls#GetInitOpts(b, 'c_ccls_init_options')},
|
|
\})
|