mirror of
https://github.com/ViViDboarder/force-vim.git
synced 2024-12-04 18:56:51 +00:00
Update for new cli and add Neomake support
This commit is contained in:
parent
b0451bc821
commit
69d9f6855e
@ -13,4 +13,4 @@ if exists(":CompilerSet") != 2 " older Vim always used :setlocal
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
set errorformat+=%*[\"]%f%*[\"]\\,\ line\ %l:\ %m
|
set errorformat+=%*[\"]%f%*[\"]\\,\ line\ %l:\ %m
|
||||||
CompilerSet makeprg=force\ push\ %
|
CompilerSet makeprg=force\ push\ -f\ %
|
||||||
|
@ -21,7 +21,7 @@ endif
|
|||||||
function! ForceDeploy()
|
function! ForceDeploy()
|
||||||
let filePath = expand("%")
|
let filePath = expand("%")
|
||||||
|
|
||||||
let command = "force push \"" . filePath . "\""
|
let command = "force push -f \"" . filePath . "\""
|
||||||
call ForceTryStart(command)
|
call ForceTryStart(command)
|
||||||
|
|
||||||
endfunction
|
endfunction
|
||||||
@ -171,4 +171,19 @@ if g:force_disable_airline != 1 && g:loaded_airline == 1 && g:force_status_line_
|
|||||||
let g:force_status_line_func_added = 1
|
let g:force_status_line_func_added = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" Neomake support
|
||||||
|
let g:neomake_apex_force_push_maker = {
|
||||||
|
\ 'exe': 'force',
|
||||||
|
\ 'args': ['push', '-f'],
|
||||||
|
\ 'errorformat': &errorformat,
|
||||||
|
\ }
|
||||||
|
let g:neomake_apex_force_test_maker = {
|
||||||
|
\ 'exe': 'echo',
|
||||||
|
\ 'args': ['test', '%:t:r', '||'],
|
||||||
|
\ 'errorformat': &errorformat,
|
||||||
|
\ }
|
||||||
|
let g:neomake_visualforce_force_push_maker = g:neomake_apex_force_push_maker
|
||||||
|
let g:neomake_apex_enabled_makers = ['force_push']
|
||||||
|
let g:neomake_visualforce_enabled_makers = ['force_push']
|
||||||
|
|
||||||
" Plugin Functions }
|
" Plugin Functions }
|
||||||
|
Loading…
Reference in New Issue
Block a user