From 674a82c669345a0a99b125b005d88122af63eae5 Mon Sep 17 00:00:00 2001 From: ivarfatland Date: Tue, 19 Mar 2024 15:56:49 +0100 Subject: [PATCH] added go debugging --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/init.lua b/init.lua index 3de80f8..e138501 100644 --- a/init.lua +++ b/init.lua @@ -145,6 +145,7 @@ local function packer_startup(use) use 'mfussenegger/nvim-dap' use 'mfussenegger/nvim-dap-python' -- follow instructions or start venv before starting nvim. use 'theHamsta/nvim-dap-virtual-text' + use 'leoluz/nvim-dap-go' if packer_bootstrap then --Comes after packages require('packer').sync() @@ -298,6 +299,7 @@ local function packer_startup(use) -- More configurations: -- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#go require'dap-python'.setup('~/.virtualenvs/debugpy/bin/python') + require'dap-go'.setup() dap.adapters.gdb = { @@ -321,9 +323,7 @@ local function packer_startup(use) -- nicer debugging. displays variable values inline -- https://github.com/theHamsta/nvim-dap-virtual-text - require'nvim-dap-virtual-text'.setup{ - - } + require'nvim-dap-virtual-text'.setup{ } end