X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0ee596c5c5e11fc79598407eaf22f83d279f7e9e..5a4872f466ebd76ddd532bdf2798554421c53df4:/.vim/bundle/ale/ale_linters/cpp/ccls.vim?ds=inline diff --git a/.vim/bundle/ale/ale_linters/cpp/ccls.vim b/.vim/bundle/ale/ale_linters/cpp/ccls.vim new file mode 100644 index 00000000..38f8df9c --- /dev/null +++ b/.vim/bundle/ale/ale_linters/cpp/ccls.vim @@ -0,0 +1,15 @@ +" Author: Ye Jingchen , Ben Falconer , jtalowell +" Description: A language server for C++ + +call ale#Set('cpp_ccls_executable', 'ccls') +call ale#Set('cpp_ccls_init_options', {}) +call ale#Set('c_build_dir', '') + +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#handlers#ccls#GetInitOpts(b, 'cpp_ccls_init_options')}, +\})