summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-04-27 00:07:41 +0100
committerw0rp <devw0rp@gmail.com>2017-04-27 00:07:41 +0100
commit6853d2c304e5eae22393208f91b0d072d2f22d74 (patch)
treeefe8396a63cd9c67e71f713f7711567aaffd1474 /autoload
parentb25dbd6ea5725591b32f6b4379dd4993b454e523 (diff)
downloadale-6853d2c304e5eae22393208f91b0d072d2f22d74.zip
#427 - Output buffer-local variables with :ALEInfo
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/debugging.vim8
1 files changed, 8 insertions, 0 deletions
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