+ asyncrun

This commit is contained in:
Stefan Liebl 2016-10-26 14:58:52 +02:00
parent da8f119345
commit 22b7288e0e
4 changed files with 18 additions and 7 deletions

3
.gitmodules vendored
View File

@ -62,3 +62,6 @@
path = pack/YouCompleteMe/opt/YouCompleteMe
url = https://github.com/Valloric/YouCompleteMe
ignore = untracked
[submodule "pack/asyncrun/opt/asyncrun"]
path = pack/asyncrun/opt/asyncrun
url = https://github.com/skywind3000/asyncrun.vim.git

@ -0,0 +1 @@
Subproject commit ad94d5ef7537049b6c0a3045119ff35061d7bb89

View File

@ -58,15 +58,21 @@ function GetAllMakeCompletions(ArgLead, CmdLine, CursorPos)
return join(s:makegoals + s:makeopts + glob(a:ArgLead.'*', 1, 1), "\n")
endfunction
function MakeOnFinished()
echo "make exit code: " . g:asyncrun_code
endfunction
function s:Make(args)
wa
echo a:args
execute 'cd '.s:ProjectBuildDir.' | make ' . s:GetMakeOptions(a:args) . ' | cd -'
execute 'cd '.s:ProjectSrcDir
try
clist
catch /E42/ " list is empty
echo 'no output'
endtry
copen
let g:asyncrun_exit = 'call MakeOnFinished()'
execute 'AsyncRun make --directory=../build ' . s:GetMakeOptions(a:args)
" try
" clist
" catch /E42/ " list is empty
" echo 'no output'
" endtry
endfunction
function CopyFirmware(command)

View File

@ -268,6 +268,7 @@ let g:Gitv_OpenHorizontal = 1
" ------------------
" packages / plugins
" ------------------
packadd asyncrun
packadd dirdiff
packadd DoxygenToolkit
packadd fugitive