mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-08 20:43:31 +08:00
#427 - Output buffer-local variables with :ALEInfo
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user