Skip to content

Commit ebfd653

Browse files
committed
added python debugging
1 parent 19b91ec commit ebfd653

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lua/kickstart/plugins/debug.lua

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ return {
2222
'jay-babu/mason-nvim-dap.nvim',
2323

2424
-- Add your own debuggers here
25-
'leoluz/nvim-dap-go',
25+
'mfussenegger/nvim-dap-python',
2626
},
2727
keys = {
2828
-- Basic debugging keymaps, feel free to change to your liking!
@@ -94,7 +94,6 @@ return {
9494
-- online, please don't ask me how to install them :)
9595
ensure_installed = {
9696
-- Update this to ensure that you have the debuggers for the langs you want
97-
'delve',
9897
},
9998
}
10099

@@ -136,13 +135,6 @@ return {
136135
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
137136
dap.listeners.before.event_exited['dapui_config'] = dapui.close
138137

139-
-- Install golang specific config
140-
require('dap-go').setup {
141-
delve = {
142-
-- On Windows delve must be run attached or it crashes.
143-
-- See https://github.com/leoluz/nvim-dap-go/blob/main/README.md#configuring
144-
detached = vim.fn.has 'win32' == 0,
145-
},
146-
}
138+
require('dap-python').setup '~/.virtualenvs/debugpy/bin/python3'
147139
end,
148140
}

0 commit comments

Comments
 (0)