#254 Add command history to ALEInfo

This commit is contained in:
w0rp
2017-02-14 23:44:37 +00:00
parent c460602cbb
commit ed370667c8
5 changed files with 163 additions and 8 deletions

View File

@@ -60,6 +60,18 @@ function! s:EchoGlobalVariables() abort
endfor
endfunction
function! s:EchoCommandHistory() abort
let l:buffer = bufnr('%')
if !has_key(g:ale_buffer_info, l:buffer)
return
endif
for l:item in g:ale_buffer_info[l:buffer].history
echom '(' . l:item.status . ') ' . string(l:item.command)
endfor
endfunction
function! ale#debugging#Info() abort
let l:filetype = &filetype
@@ -91,4 +103,7 @@ function! ale#debugging#Info() abort
echom ' Global Variables:'
echom ''
call s:EchoGlobalVariables()
echom ' Command History:'
echom ''
call s:EchoCommandHistory()
endfunction