nvim: after/plugin: nvimgdb: Update nvim-gdb configuration
This commit is contained in:
parent
c9cc36a499
commit
d00bf90b30
2 changed files with 32 additions and 6 deletions
2
nvim/.config/nvim/after/ftplugin/nvimgdb.vim
Normal file
2
nvim/.config/nvim/after/ftplugin/nvimgdb.vim
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
" Always open gdb debug window at the bottom
|
||||||
|
wincmd J
|
|
@ -1,13 +1,37 @@
|
||||||
|
let g:nvimgdb_disable_start_keymaps = 1
|
||||||
|
|
||||||
function! NvimGdbNoTKeymaps()
|
function! NvimGdbNoTKeymaps()
|
||||||
tnoremap <silent> <buffer> jk <C-\><C-n>
|
tnoremap <silent> <buffer> jk <C-\><C-n>
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" Disable all default nvim-gdb keymaps
|
||||||
let g:nvimgdb_config_override = {
|
let g:nvimgdb_config_override = {
|
||||||
\ 'key_next' : 'n',
|
\ 'key_next' : v:null,
|
||||||
\ 'key_step' : 's',
|
\ 'key_step' : v:null,
|
||||||
\ 'key_finish' : 'f',
|
\ 'key_finish' : v:null,
|
||||||
\ 'key_continue' : 'c',
|
\ 'key_continue' : v:null,
|
||||||
\ 'key_until' : 'u',
|
\ 'key_until' : v:null,
|
||||||
\ 'key_breakpoint' : 'b',
|
\ 'key_breakpoint' : v:null,
|
||||||
|
\ 'key_frameup' : v:null,
|
||||||
|
\ 'key_framedown' : v:null,
|
||||||
|
\ 'key_quit' : v:null,
|
||||||
\ 'set_tkeymaps' : "NvimGdbNoTKeymaps",
|
\ 'set_tkeymaps' : "NvimGdbNoTKeymaps",
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
|
nnoremap <Leader>dg :GdbStart gdb<SPACE>
|
||||||
|
|
||||||
|
nnoremap <Leader>db :GdbBreakpointToggle<CR>
|
||||||
|
nnoremap <Leader>dB :GdbBreakpointClearAll<CR>
|
||||||
|
|
||||||
|
nnoremap <Leader>dc :GdbContinue<CR>
|
||||||
|
nnoremap <Leader>dn :GdbNext<CR>
|
||||||
|
nnoremap <Leader>ds :GdbStep<CR>
|
||||||
|
nnoremap <Leader>dl :GdbUntil<SPACE>
|
||||||
|
|
||||||
|
nnoremap <Leader>df :GdbFrame<CR>
|
||||||
|
nnoremap <Leader>du :GdbFrameUp<CR>
|
||||||
|
nnoremap <Leader>dd :GdbFrameDown<CR>
|
||||||
|
|
||||||
|
nnoremap <Leader>dF :GdbFinish<CR>
|
||||||
|
nnoremap <Leader>di :GdbInterrupt<CR>
|
||||||
|
nnoremap <Leader>dq :GdbDebugStop<CR>
|
||||||
|
|
Loading…
Reference in a new issue