configure lsp

This commit is contained in:
2023-09-15 13:27:54 +03:00
parent 78d13aca61
commit 4fa17d87c8
18 changed files with 476 additions and 84 deletions

View 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,
}