configure lsp
This commit is contained in:
12
lua/plugins/nvim-dap-python.lua
Normal file
12
lua/plugins/nvim-dap-python.lua
Normal file
@@ -0,0 +1,12 @@
|
||||
return {
|
||||
"mfussenegger/nvim-dap-python",
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "<leader>dPt", function() require('dap-python').test_method() end, desc = "Debug Method" },
|
||||
{ "<leader>dPc", function() require('dap-python').test_class() end, desc = "Debug Class" },
|
||||
},
|
||||
config = function()
|
||||
local path = require("mason-registry").get_package("debugpy"):get_install_path()
|
||||
require("dap-python").setup(path .. "/venv/bin/python")
|
||||
end,
|
||||
}
|
||||
Reference in New Issue
Block a user