From 6853d2c304e5eae22393208f91b0d072d2f22d74 Mon Sep 17 00:00:00 2001 From: w0rp Date: Thu, 27 Apr 2017 00:07:41 +0100 Subject: #427 - Output buffer-local variables with :ALEInfo --- autoload/ale/debugging.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'autoload') diff --git a/autoload/ale/debugging.vim b/autoload/ale/debugging.vim index 60c1b37c..f42c9e82 100644 --- a/autoload/ale/debugging.vim +++ b/autoload/ale/debugging.vim @@ -51,12 +51,20 @@ endfunction function! s:EchoLinterVariables(variable_list) abort for l:key in a:variable_list echom 'let g:' . l:key . ' = ' . string(g:[l:key]) + + if has_key(b:, l:key) + echom 'let b:' . l:key . ' = ' . string(b:[l:key]) + endif endfor endfunction function! s:EchoGlobalVariables() abort for l:key in s:global_variable_list echom 'let g:' . l:key . ' = ' . string(get(g:, l:key, v:null)) + + if has_key(b:, l:key) + echom 'let b:' . l:key . ' = ' . string(b:[l:key]) + endif endfor endfunction -- cgit v1.2.3