Sigh, neovim doesn't support default method arguments
This commit is contained in:
parent
f6d12eff72
commit
b20f61bcff
1 changed files with 14 additions and 4 deletions
|
|
@ -42,13 +42,23 @@ function! vimspector#ClearBreakpoints() abort
|
|||
py3 _vimspector_session.ClearBreakpoints()
|
||||
endfunction
|
||||
|
||||
function! vimspector#ToggleBreakpoint( options = {} ) abort
|
||||
py3 _vimspector_session.ToggleBreakpoint( vim.eval( 'a:options' ) )
|
||||
function! vimspector#ToggleBreakpoint( ... ) abort
|
||||
if a:0 == 0
|
||||
let options = {}
|
||||
else
|
||||
let options = a:1
|
||||
endif
|
||||
py3 _vimspector_session.ToggleBreakpoint( vim.eval( 'options' ) )
|
||||
endfunction
|
||||
|
||||
function! vimspector#AddFunctionBreakpoint( function, options = {} ) abort
|
||||
function! vimspector#AddFunctionBreakpoint( function, ... ) abort
|
||||
if a:0 == 0
|
||||
let options = {}
|
||||
else
|
||||
let options = a:1
|
||||
endif
|
||||
py3 _vimspector_session.AddFunctionBreakpoint( vim.eval( 'a:function' ),
|
||||
\ vim.eval( 'a:options' ) )
|
||||
\ vim.eval( 'options' ) )
|
||||
endfunction
|
||||
|
||||
function! vimspector#StepOver() abort
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue