summaryrefslogtreecommitdiff
path: root/ale_linters/c/clangd.vim
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-11-07 15:41:58 +0000
committerw0rp <devw0rp@gmail.com>2019-11-07 15:41:58 +0000
commitbde9b1cfcd9cf4808ce29014851b3f7592574d99 (patch)
tree45d6a7d7b2020aba82f1ff246cf6ddff19793a68 /ale_linters/c/clangd.vim
parent5eefe544ed3829b5f5d977c133361dc6ac907e05 (diff)
downloadale-bde9b1cfcd9cf4808ce29014851b3f7592574d99.zip
Revert "Add definition of c/clangd's language as C (#2791)"
This reverts commit f4070f6c43b3cb2e7463d8426a68d5a726991288.
Diffstat (limited to 'ale_linters/c/clangd.vim')
-rw-r--r--ale_linters/c/clangd.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/c/clangd.vim b/ale_linters/c/clangd.vim
index ab8a0259..c42d4497 100644
--- a/ale_linters/c/clangd.vim
+++ b/ale_linters/c/clangd.vim
@@ -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