aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2025-01-19 14:08:29 +0100
committerGabriel A. Giovanini <mail@gabrielgio.me>2025-01-19 14:08:29 +0100
commitb4e54e30af06739a08428024aaa36938e79ba95b (patch)
treec3d3096a6c865cbc6e260ea96de3735e0d5f76a9
parent73f8ec6c9ab2929bb392f0db5922045a9ad62107 (diff)
downloadgabrielgio.lua-master.tar.gz
gabrielgio.lua-master.tar.bz2
gabrielgio.lua-master.zip
-rw-r--r--init.lua1
-rw-r--r--lua/gabrielgio/dap.lua3
2 files changed, 4 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 97e7598..5baff8b 100644
--- a/init.lua
+++ b/init.lua
@@ -26,6 +26,7 @@ local pkgs = {
"mfussenegger/nvim-dap", -- add dap support
"nvim-neotest/nvim-nio", -- async support library
"rcarriga/nvim-dap-ui", -- dap ui
+ "leoluz/nvim-dap-go", -- dap go
"nvim-lua/plenary.nvim", -- base lib
"nvim-telescope/telescope.nvim", -- telescope
"nvim-telescope/telescope-file-browser.nvim", -- telescope file browser
diff --git a/lua/gabrielgio/dap.lua b/lua/gabrielgio/dap.lua
index c5059c6..4d55ca6 100644
--- a/lua/gabrielgio/dap.lua
+++ b/lua/gabrielgio/dap.lua
@@ -1,6 +1,9 @@
local dap = require("dap")
local key = require("gabrielgio.key")
local dapui = require("dapui")
+local dapgo = require("dap-go")
+
+dapgo.setup()
key.nnoremap("<F5>", ":lua require'dap'.continue()<CR>")
key.nnoremap("<F10>", ":lua require'dap'.step_over()<CR>")