feat: add debugger

This commit is contained in:
fiplox 2023-08-27 17:16:09 +02:00
parent 2a95778f1f
commit e5d425f603
3 changed files with 20 additions and 1 deletions

View File

@ -201,7 +201,7 @@ local mappings = {
['rr'] = 'Search and replace all',
['rs'] = 'Search and replace',
['q'] = { '<cmd>lua UnMapDHM()<cr>', 'Qwerty' },
['d'] = { '<cmd>bd<cr>', 'Delete buffer' },
['k'] = { '<cmd>bd<cr>', 'Delete buffer' },
['b'] = {
function()
require('buffer_manager.ui').toggle_quick_menu()
@ -252,6 +252,9 @@ local mappings = {
'Buffer 5',
},
['g'] = { '<cmd>Neogit<cr>', 'Neogit' },
d = {
s = { '<cmd>Lazy load nvim-gdb <cr>', 'Load GDB' },
},
l = {
name = 'LSP',
l = { '<cmd>Lazy load lsp <bar> LspStart <cr>', 'Start LSP' },

View File

@ -18,6 +18,19 @@ let g:VM_maps["Add Cursor Up"] = '<C-e>'
let g:VM_maps['Find Next'] = 'k'
let g:VM_maps['Find Prev'] = 'K'
let g:VM_custom_motions = {'n': 'j', 'j': 'n', 'l': 'i', 'e': 'k', 'i': 'l'}
function! NvimGdbNoTKeymaps()
tnoremap <silent> <buffer> <esc> <c-\><c-n>
endfunction
let g:nvimgdb_config_override = {
\ 'key_next': 'k',
\ 'key_step': 's',
\ 'key_finish': 'f',
\ 'key_continue': 'c',
\ 'key_until': 'u',
\ 'key_breakpoint': 'b',
\ 'set_tkeymaps': "NvimGdbNoTKeymaps",
\ }
]])
opt.termguicolors = true

View File

@ -340,4 +340,7 @@ return {
"ecthelionvi/NeoSwap.nvim",
opts = {}
},
{
'sakhnik/nvim-gdb'
},
}