diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 8e332bf2..8f1e51f7 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -1,15 +1,5 @@ --- debug.lua --- --- Shows how to use the DAP plugin to debug your code. --- --- Primarily focused on configuring the debugger for Go, but can --- be extended to other languages as well. That's why it's called --- kickstart.nvim and not kitchen-sink.nvim ;) - return { - -- NOTE: Yes, you can install new plugins here! 'mfussenegger/nvim-dap', - -- NOTE: And you can specify dependencies as well dependencies = { -- Creates a beautiful debugger UI 'rcarriga/nvim-dap-ui', @@ -23,6 +13,7 @@ return { -- Add your own debuggers here 'leoluz/nvim-dap-go', + 'mfussenegger/nvim-dap-python', }, keys = { -- Basic debugging keymaps, feel free to change to your liking! @@ -81,6 +72,9 @@ return { local dap = require 'dap' local dapui = require 'dapui' + require('dap-python').setup { 'uv' } + require('dap-python').test_runner = 'pytest' + require('mason-nvim-dap').setup { -- Makes a best effort to setup the various debuggers with -- reasonable debug configurations diff --git a/lua/lazy-plugins.lua b/lua/lazy-plugins.lua index bcfd02ad..06efd09e 100644 --- a/lua/lazy-plugins.lua +++ b/lua/lazy-plugins.lua @@ -26,6 +26,8 @@ require('lazy').setup({ require 'kickstart.plugins.indent_line', require 'kickstart.plugins.lint', + + require 'kickstart.plugins.debug', }, { ui = { -- If you are using a Nerd Font: set icons to an empty table which will use the