Neo tree will be toggled during debug

This commit is contained in:
SamPosh 2023-04-25 10:51:58 +05:30 committed by GitHub
parent 3a20d76673
commit 5c01b0ce86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -58,7 +58,10 @@ return {
-- Basic debugging keymaps, feel free to change to your liking!
vim.keymap.set('n', '<F5>', dap.continue)
vim.keymap.set('n', '<F5>', function()
dap.continue()
vim.cmd.Neotree('toggle') -- this will toggle the Neo tree during debugging
end)
vim.keymap.set('n', '<F11>', dap.step_into)
vim.keymap.set('n', '<F10>', dap.step_over)
vim.keymap.set('n', '<S-F11>', dap.step_out)