mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
#427 Implement buffer variable overrides for all linter options
This commit is contained in:
@@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user