added go debugging

This commit is contained in:
ivarfatland
2024-03-19 15:56:49 +01:00
parent f838291e30
commit 674a82c669
+3 -3
View File
@@ -145,6 +145,7 @@ local function packer_startup(use)
use 'mfussenegger/nvim-dap' use 'mfussenegger/nvim-dap'
use 'mfussenegger/nvim-dap-python' -- follow instructions or start venv before starting nvim. use 'mfussenegger/nvim-dap-python' -- follow instructions or start venv before starting nvim.
use 'theHamsta/nvim-dap-virtual-text' use 'theHamsta/nvim-dap-virtual-text'
use 'leoluz/nvim-dap-go'
if packer_bootstrap then --Comes after packages if packer_bootstrap then --Comes after packages
require('packer').sync() require('packer').sync()
@@ -298,6 +299,7 @@ local function packer_startup(use)
-- More configurations: -- More configurations:
-- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#go -- https://github.com/mfussenegger/nvim-dap/wiki/Debug-Adapter-installation#go
require'dap-python'.setup('~/.virtualenvs/debugpy/bin/python') require'dap-python'.setup('~/.virtualenvs/debugpy/bin/python')
require'dap-go'.setup()
dap.adapters.gdb = { dap.adapters.gdb = {
@@ -321,9 +323,7 @@ local function packer_startup(use)
-- nicer debugging. displays variable values inline -- nicer debugging. displays variable values inline
-- https://github.com/theHamsta/nvim-dap-virtual-text -- https://github.com/theHamsta/nvim-dap-virtual-text
require'nvim-dap-virtual-text'.setup{ require'nvim-dap-virtual-text'.setup{ }
}
end end