#427 - Output buffer-local variables with :ALEInfo

This commit is contained in:
w0rp
2017-04-27 00:07:41 +01:00
parent b25dbd6ea5
commit 6853d2c304
2 changed files with 50 additions and 0 deletions

View File

@@ -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