nvim: plugins: Add nvim-gdb
This commit is contained in:
parent
ffadf1cf4f
commit
119c91a6b7
2 changed files with 15 additions and 0 deletions
13
nvim/.config/nvim/after/plugin/nvimgdb.vim
Normal file
13
nvim/.config/nvim/after/plugin/nvimgdb.vim
Normal file
|
@ -0,0 +1,13 @@
|
|||
function! NvimGdbNoTKeymaps()
|
||||
tnoremap <silent> <buffer> jk <C-\><C-n>
|
||||
endfunction
|
||||
|
||||
let g:nvimgdb_config_override = {
|
||||
\ 'key_next' : 'n',
|
||||
\ 'key_step' : 's',
|
||||
\ 'key_finish' : 'f',
|
||||
\ 'key_continue' : 'c',
|
||||
\ 'key_until' : 'u',
|
||||
\ 'key_breakpoint' : 'b',
|
||||
\ 'set_tkeymaps' : "NvimGdbNoTKeymaps",
|
||||
\ }
|
|
@ -115,6 +115,8 @@ local init = function ()
|
|||
'rafamadriz/friendly-snippets',
|
||||
'hrsh7th/vim-vsnip'
|
||||
}
|
||||
-- GDB support
|
||||
use 'sakhnik/nvim-gdb'
|
||||
end
|
||||
|
||||
return require('packer').startup(init)
|
||||
|
|
Loading…
Reference in a new issue