},
},
},
- {
- "neovim/nvim-lspconfig",
- opts = function(_, opts)
- local servers = { "pyright", "ruff"}
- for _, server in ipairs(servers) do
- opts.servers[server] = opts.servers[server] or {}
- opts.servers[server].enabled = server == lsp or server == ruff
- end
- end,
- },
{
"nvim-neotest/neotest",
dependencies = {
{ "<leader>dPt", function() require('dap-python').test_method() end, desc = "Debug Method", ft = "python" },
{ "<leader>dPc", function() require('dap-python').test_class() end, desc = "Debug Class", ft = "python" },
},
- config = function()
- local path = require("mason-registry").get_package("debugpy"):get_install_path()
- require("dap-python").setup(path .. "/venv/bin/python")
- end,
- },
- },
- { "jay-babu/mason-nvim-dap.nvim",
- opts = {
- handlers = {
- python = function() end,
- },
- ensure_installed = { "python" },
},
},
{ "linux-cultist/venv-selector.nvim", enabled = false,