1
0
Fork 0

initial nvim-dap config

This commit is contained in:
Felipe 2023-03-05 01:21:04 -03:00
parent 7c9c796102
commit 09e6e6fa67
Signed by: pitbuster
SSH key fingerprint: SHA256:HDYu2Pm4/TmSX8GBwV49UvFWr1Ljg8XlHxKeCpjJpOk
4 changed files with 18 additions and 1 deletions

5
.gitmodules vendored
View file

@ -74,5 +74,8 @@
path = pack/general/start/git-blame.nvim
url = https://github.com/f-person/git-blame.nvim
[submodule "nvim-dap"]
path = nvim-dap
path = pack/general/start/nvim-dap
url = https://github.com/mfussenegger/nvim-dap
[submodule "pack/general/start/nvim-dap-go"]
path = pack/general/start/nvim-dap-go
url = https://github.com/leoluz/nvim-dap-go

View file

@ -268,3 +268,16 @@ map('n', '<Leader>/', ':Telescope current_buffer_fuzzy_find<CR>')
--map('n', '<Leader>*', ':Telescope grep_string<CR>')
map('n', '<Leader>g', ':Telescope live_grep<CR>')
map('n', '<Leader>cg', ':Telescope grep_string<CR>')
---- nvim-dap
-- nvim-dap-go
local dap = require('dap')
-- Set keymaps to control the debugger
vim.keymap.set('n', '<leader>dc', require 'dap'.continue)
vim.keymap.set('n', '<leader>do', require 'dap'.step_over)
vim.keymap.set('n', '<leader>di', require 'dap'.step_into)
vim.keymap.set('n', '<leader>dO', require 'dap'.step_out)
vim.keymap.set('n', '<leader>db', require 'dap'.toggle_breakpoint)
vim.keymap.set('n', '<leader>dB', function()
require 'dap'.set_breakpoint(vim.fn.input('Breakpoint condition: '))
end)
require('dap-go').setup()

@ -0,0 +1 @@
Subproject commit b4ded7de579b4e2a85c203388233b54bf1028816