initial nvim-dap config
This commit is contained in:
parent
7c9c796102
commit
09e6e6fa67
4 changed files with 18 additions and 1 deletions
5
.gitmodules
vendored
5
.gitmodules
vendored
|
|
@ -74,5 +74,8 @@
|
||||||
path = pack/general/start/git-blame.nvim
|
path = pack/general/start/git-blame.nvim
|
||||||
url = https://github.com/f-person/git-blame.nvim
|
url = https://github.com/f-person/git-blame.nvim
|
||||||
[submodule "nvim-dap"]
|
[submodule "nvim-dap"]
|
||||||
path = nvim-dap
|
path = pack/general/start/nvim-dap
|
||||||
url = https://github.com/mfussenegger/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
|
||||||
|
|
|
||||||
13
init.lua
13
init.lua
|
|
@ -268,3 +268,16 @@ map('n', '<Leader>/', ':Telescope current_buffer_fuzzy_find<CR>')
|
||||||
--map('n', '<Leader>*', ':Telescope grep_string<CR>')
|
--map('n', '<Leader>*', ':Telescope grep_string<CR>')
|
||||||
map('n', '<Leader>g', ':Telescope live_grep<CR>')
|
map('n', '<Leader>g', ':Telescope live_grep<CR>')
|
||||||
map('n', '<Leader>cg', ':Telescope grep_string<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()
|
||||||
|
|
|
||||||
1
pack/general/start/nvim-dap-go
Submodule
1
pack/general/start/nvim-dap-go
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit b4ded7de579b4e2a85c203388233b54bf1028816
|
||||||
Loading…
Add table
Reference in a new issue