Use silent for mappings
This commit is contained in:
parent
f4d855e1df
commit
80ba644732
1 changed files with 17 additions and 10 deletions
|
|
@ -37,22 +37,29 @@ let g:loaded_vimpector = 1
|
||||||
|
|
||||||
let s:mappings = get( g:, 'vimspector_enable_mappings', '' )
|
let s:mappings = get( g:, 'vimspector_enable_mappings', '' )
|
||||||
|
|
||||||
nnoremap <Plug>VimspectorContinue :<c-u>call vimspector#Continue()<CR>
|
nnoremap <silent> <Plug>VimspectorContinue
|
||||||
nnoremap <Plug>VimspectorStop :<c-u>call vimspector#Stop()<CR>
|
\ :<c-u>call vimspector#Continue()<CR>
|
||||||
nnoremap <Plug>VimspectorRestart :<c-u>call vimspector#Restart()<CR>
|
nnoremap <silent> <Plug>VimspectorStop
|
||||||
nnoremap <Plug>VimspectorPause :<c-u>call vimspector#Pause()<CR>
|
\ :<c-u>call vimspector#Stop()<CR>
|
||||||
nnoremap <Plug>VimspectorToggleBreakpoint
|
nnoremap <silent> <Plug>VimspectorRestart
|
||||||
|
\ :<c-u>call vimspector#Restart()<CR>
|
||||||
|
nnoremap <silent> <Plug>VimspectorPause
|
||||||
|
\ :<c-u>call vimspector#Pause()<CR>
|
||||||
|
nnoremap <silent> <Plug>VimspectorToggleBreakpoint
|
||||||
\ :<c-u>call vimspector#ToggleBreakpoint()<CR>
|
\ :<c-u>call vimspector#ToggleBreakpoint()<CR>
|
||||||
nnoremap <Plug>VimspectorToggleConditionalBreakpoint
|
nnoremap <silent> <Plug>VimspectorToggleConditionalBreakpoint
|
||||||
\ :<c-u>call vimspector#ToggleBreakpoint(
|
\ :<c-u>call vimspector#ToggleBreakpoint(
|
||||||
\ { 'condition': input( 'Enter condition expression: ' ),
|
\ { 'condition': input( 'Enter condition expression: ' ),
|
||||||
\ 'hitCondition': input( 'Enter hit count expression: ' ) }
|
\ 'hitCondition': input( 'Enter hit count expression: ' ) }
|
||||||
\ )<CR>
|
\ )<CR>
|
||||||
nnoremap <Plug>VimspectorAddFunctionBreakpoint
|
nnoremap <silent> <Plug>VimspectorAddFunctionBreakpoint
|
||||||
\ :<c-u>call vimspector#AddFunctionBreakpoint( expand( '<cexpr>' ) )<CR>
|
\ :<c-u>call vimspector#AddFunctionBreakpoint( expand( '<cexpr>' ) )<CR>
|
||||||
nnoremap <Plug>VimspectorStepOver :<c-u>call vimspector#StepOver()<CR>
|
nnoremap <silent> <Plug>VimspectorStepOver
|
||||||
nnoremap <Plug>VimspectorStepInto :<c-u>call vimspector#StepInto()<CR>
|
\ :<c-u>call vimspector#StepOver()<CR>
|
||||||
nnoremap <Plug>VimspectorStepOut :<c-u>call vimspector#StepOut()<CR>
|
nnoremap <silent> <Plug>VimspectorStepInto
|
||||||
|
\ :<c-u>call vimspector#StepInto()<CR>
|
||||||
|
nnoremap <silent> <Plug>VimspectorStepOut
|
||||||
|
\ :<c-u>call vimspector#StepOut()<CR>
|
||||||
|
|
||||||
if s:mappings ==# 'VISUAL_STUDIO'
|
if s:mappings ==# 'VISUAL_STUDIO'
|
||||||
nmap <F5> <Plug>VimspectorContinue
|
nmap <F5> <Plug>VimspectorContinue
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue