improve Make-Command in toptica
This commit is contained in:
parent
d8d89c4681
commit
33034812d0
@ -57,30 +57,18 @@ endfunction
|
|||||||
" ====
|
" ====
|
||||||
" Make
|
" Make
|
||||||
" ====
|
" ====
|
||||||
function s:GetMakeOptions(args)
|
|
||||||
let makeopts = a:args
|
|
||||||
return makeopts
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function GetAllMakeCompletions(ArgLead, CmdLine, CursorPos)
|
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
|
wa
|
||||||
echo a:args
|
let g:asyncrun_quickfix = 12
|
||||||
copen
|
augroup QuickfixStatus
|
||||||
let g:asyncrun_exit = 'call MakeOnFinished()'
|
au! BufWinEnter quickfix setlocal
|
||||||
execute 'AsyncRun make --directory='.g:ProjectBuildDir.' '.s:GetMakeOptions(a:args)
|
\ statusline=%t\ [%{g:asyncrun_status}]\ %{exists('w:quickfix_title')?\ '\ '.w:quickfix_title\ :\ ''}\ %=%-15(%l,%c%V%)\ %P
|
||||||
" try
|
augroup END
|
||||||
" clist
|
execute 'AsyncRun -save=1 -program=make @ --directory='.g:ProjectBuildDir.' '.a:args
|
||||||
" catch /E42/ " list is empty
|
|
||||||
" echo 'no output'
|
|
||||||
" endtry
|
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function CopyFirmware(command)
|
function CopyFirmware(command)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user