summaryrefslogtreecommitdiff
path: root/ale_linters
diff options
context:
space:
mode:
authorJoão Borges <rageknify@gmail.com>2019-10-17 17:28:48 +0100
committerw0rp <w0rp@users.noreply.github.com>2019-10-17 17:28:48 +0100
commitf4070f6c43b3cb2e7463d8426a68d5a726991288 (patch)
tree42c0dae6a5b376d0871593d564f3c9a7a610c4cf /ale_linters
parentb24fd13423656e14fa266405e1f238f0ec65cfb3 (diff)
downloadale-f4070f6c43b3cb2e7463d8426a68d5a726991288.zip
Add definition of c/clangd's language as C (#2791)
* Add definition of c/clangd's language as C * Update tests for clangd to be called with '-x c' * Change to use single quotes instead of double quotes
Diffstat (limited to 'ale_linters')
-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 79b600fa..0bb38d43 100644
--- a/ale_linters/c/clangd.vim
+++ b/ale_linters/c/clangd.vim
@@ -5,7 +5,7 @@ call ale#Set('c_clangd_executable', 'clangd')
call ale#Set('c_clangd_options', '')
function! ale_linters#c#clangd#GetCommand(buffer) abort
- return '%e' . ale#Pad(ale#Var(a:buffer, 'c_clangd_options'))
+ return '%e -x c' . ale#Pad(ale#Var(a:buffer, 'c_clangd_options'))
endfunction
call ale#linter#Define('c', {