diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/dap.lua b/users/price/dots/.config/nvim/lua/plugins/configs/dap.lua index 62a7319e..e77d2758 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/dap.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/dap.lua @@ -24,19 +24,21 @@ return { event = { "BufReadPre", "BufNewFile" }, config = true, }, + { + "mfussenegger/nvim-dap-python", + ft = "python", + dependencies = { + "mfussenegger/nvim-dap", + }, + config = function() + local dap_python = require("dap-python") + dap_python.test_runner = "pytest" + dap_python.setup(vim.fn.stdpath("data") .. "/mason/packages/debugpy/venv/bin/python3") + end, + }, { "mfussenegger/nvim-dap", event = { "BufReadPre", "BufNewFile" }, - dependencies = { - { - "mfussenegger/nvim-dap-python", - config = function() - local dap_python = require("dap-python") - dap_python.test_runner = "pytest" - dap_python.setup(vim.fn.stdpath("data") .. "/mason/packages/debugpy/venv/bin/python3") - end, - }, - }, keys = { { "d", desc = "> DAP" }, {