Revert "Add definition of c/clangd's language as C (#2791)"

This reverts commit f4070f6c43.
This commit is contained in:
w0rp
2019-11-07 15:41:58 +00:00
parent 5eefe544ed
commit bde9b1cfcd
2 changed files with 5 additions and 9 deletions

View File

@@ -8,7 +8,7 @@ call ale#Set('c_build_dir', '')
function! ale_linters#c#clangd#GetCommand(buffer) abort
let l:build_dir = ale#c#GetBuildDirectory(a:buffer)
return '%e -x c'
return '%e'
\ . ale#Pad(ale#Var(a:buffer, 'c_clangd_options'))
\ . (!empty(l:build_dir) ? ' -compile-commands-dir=' . ale#Escape(l:build_dir) : '')
endfunction