summaryrefslogtreecommitdiff
path: root/ale_linters/cmake/cmakelint.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/cmake/cmakelint.vim')
-rw-r--r--ale_linters/cmake/cmakelint.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/cmake/cmakelint.vim b/ale_linters/cmake/cmakelint.vim
index fb876c66..baf9e235 100644
--- a/ale_linters/cmake/cmakelint.vim
+++ b/ale_linters/cmake/cmakelint.vim
@@ -8,12 +8,12 @@ let g:ale_cmake_cmakelint_options =
\ get(g:, 'ale_cmake_cmakelint_options', '')
function! ale_linters#cmake#cmakelint#Executable(buffer) abort
- return g:ale_cmake_cmakelint_executable
+ return ale#Var(a:buffer, 'cmake_cmakelint_executable')
endfunction
function! ale_linters#cmake#cmakelint#Command(buffer) abort
return ale_linters#cmake#cmakelint#Executable(a:buffer)
- \ . ' ' . g:ale_cmake_cmakelint_options . ' %t'
+ \ . ' ' . ale#Var(a:buffer, 'cmake_cmakelint_options') . ' %t'
endfunction
call ale#linter#Define('cmake', {