2018-09-26 12:09:37 +00:00
|
|
|
" Author: Ye Jingchen <ye.jingchen@gmail.com>, Ben Falconer <ben@falconers.me.uk>, jtalowell <jtalowell@protonmail.com>
|
|
|
|
" Description: A language server for Objective-C
|
|
|
|
|
|
|
|
call ale#Set('objc_ccls_executable', 'ccls')
|
|
|
|
call ale#Set('objc_ccls_init_options', {})
|
2020-04-18 11:15:32 +00:00
|
|
|
call ale#Set('c_build_dir', '')
|
2018-09-26 12:09:37 +00:00
|
|
|
|
|
|
|
call ale#linter#Define('objc', {
|
|
|
|
\ 'name': 'ccls',
|
|
|
|
\ 'lsp': 'stdio',
|
2019-02-22 18:05:04 +00:00
|
|
|
\ 'executable': {b -> ale#Var(b, 'objc_ccls_executable')},
|
2018-09-26 12:09:37 +00:00
|
|
|
\ 'command': '%e',
|
2019-02-22 18:05:04 +00:00
|
|
|
\ 'project_root': function('ale#handlers#ccls#GetProjectRoot'),
|
2020-04-18 11:15:32 +00:00
|
|
|
\ 'initialization_options': {b -> ale#handlers#ccls#GetInitOpts(b, 'objc_ccls_init_options')},
|
2018-09-26 12:09:37 +00:00
|
|
|
\})
|