Skip to content

Commit

Permalink
Add Plug mapping and VimspectorDisassemble command
Browse files Browse the repository at this point in the history
  • Loading branch information
puremourning committed Oct 9, 2022
1 parent e81013d commit 77ed9e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions autoload/vimspector.vim
Expand Up @@ -351,11 +351,7 @@ function! vimspector#ShowDisassembly( ... ) abort
if !s:Enabled()
return
endif
let opts = {}
if a:0 > 0
let opts = a:1
endif
py3 _vimspector_session.ShowDisassembly( **vim.eval( 'opts' ) )
py3 _vimspector_session.ShowDisassembly()
endfunction

function! vimspector#DeleteWatch() abort
Expand Down
6 changes: 6 additions & 0 deletions plugin/vimspector.vim
Expand Up @@ -117,6 +117,8 @@ nnoremap <silent> <Plug>VimspectorJumpToProgramCounter
nnoremap <silent> <Plug>VimspectorBreakpoints
\ :<c-u>call vimspector#ListBreakpoints()<CR>
nnoremap <silent> <Plug>VimspectorDisassemble
\ :<c-u>call vimspector#ShowDisassembly()<CR>
if s:mappings ==# 'VISUAL_STUDIO'
nmap <F5> <Plug>VimspectorContinue
Expand All @@ -130,6 +132,7 @@ if s:mappings ==# 'VISUAL_STUDIO'
nmap <F10> <Plug>VimspectorStepOver
nmap <F11> <Plug>VimspectorStepInto
nmap <S-F11> <Plug>VimspectorStepOut
nmap <M-8> <Plug>VimspectorDisassemble
elseif s:mappings ==# 'HUMAN'
nmap <F5> <Plug>VimspectorContinue
nmap <leader><F5> <Plug>VimspectorLaunch
Expand Down Expand Up @@ -166,6 +169,9 @@ command! -bar
command! -bar
\ VimspectorBreakpoints
\ call vimspector#ListBreakpoints()
command! -bar
\ VimspectorDisassemble
\ call vimspector#ShowDisassembly()

" Installer commands
command! -bar -bang -nargs=* -complete=custom,vimspector#CompleteInstall
Expand Down

0 comments on commit 77ed9e3

Please sign in to comment.