#427 Implement buffer variable overrides for all linter options

This commit is contained in:
w0rp
2017-04-16 01:24:08 +01:00
parent e80116cee0
commit e97dada261
45 changed files with 117 additions and 108 deletions

View File

@@ -6,7 +6,7 @@ let g:ale_cpp_clangtidy_options =
\ get(g:, 'ale_cpp_clangtidy_options', '-std=c++14 -Wall')
function! ale_linters#cpp#clangtidy#GetCommand(buffer) abort
return 'clang-tidy %t -- ' . g:ale_cpp_clangtidy_options
return 'clang-tidy %t -- ' . ale#Var(a:buffer, 'cpp_clangtidy_options')
endfunction
call ale#linter#Define('cpp', {