+ asyncrun
This commit is contained in:
parent
da8f119345
commit
22b7288e0e
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -62,3 +62,6 @@
|
|||||||
path = pack/YouCompleteMe/opt/YouCompleteMe
|
path = pack/YouCompleteMe/opt/YouCompleteMe
|
||||||
url = https://github.com/Valloric/YouCompleteMe
|
url = https://github.com/Valloric/YouCompleteMe
|
||||||
ignore = untracked
|
ignore = untracked
|
||||||
|
[submodule "pack/asyncrun/opt/asyncrun"]
|
||||||
|
path = pack/asyncrun/opt/asyncrun
|
||||||
|
url = https://github.com/skywind3000/asyncrun.vim.git
|
||||||
|
1
pack/asyncrun/opt/asyncrun
Submodule
1
pack/asyncrun/opt/asyncrun
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit ad94d5ef7537049b6c0a3045119ff35061d7bb89
|
@ -58,15 +58,21 @@ function GetAllMakeCompletions(ArgLead, CmdLine, CursorPos)
|
|||||||
return join(s:makegoals + s:makeopts + glob(a:ArgLead.'*', 1, 1), "\n")
|
return join(s:makegoals + s:makeopts + glob(a:ArgLead.'*', 1, 1), "\n")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function MakeOnFinished()
|
||||||
|
echo "make exit code: " . g:asyncrun_code
|
||||||
|
endfunction
|
||||||
|
|
||||||
function s:Make(args)
|
function s:Make(args)
|
||||||
|
wa
|
||||||
echo a:args
|
echo a:args
|
||||||
execute 'cd '.s:ProjectBuildDir.' | make ' . s:GetMakeOptions(a:args) . ' | cd -'
|
copen
|
||||||
execute 'cd '.s:ProjectSrcDir
|
let g:asyncrun_exit = 'call MakeOnFinished()'
|
||||||
try
|
execute 'AsyncRun make --directory=../build ' . s:GetMakeOptions(a:args)
|
||||||
clist
|
" try
|
||||||
catch /E42/ " list is empty
|
" clist
|
||||||
echo 'no output'
|
" catch /E42/ " list is empty
|
||||||
endtry
|
" echo 'no output'
|
||||||
|
" endtry
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function CopyFirmware(command)
|
function CopyFirmware(command)
|
||||||
|
@ -268,6 +268,7 @@ let g:Gitv_OpenHorizontal = 1
|
|||||||
" ------------------
|
" ------------------
|
||||||
" packages / plugins
|
" packages / plugins
|
||||||
" ------------------
|
" ------------------
|
||||||
|
packadd asyncrun
|
||||||
packadd dirdiff
|
packadd dirdiff
|
||||||
packadd DoxygenToolkit
|
packadd DoxygenToolkit
|
||||||
packadd fugitive
|
packadd fugitive
|
||||||
|
Loading…
x
Reference in New Issue
Block a user