feat(python): add ft to keymaps

This commit is contained in:
Jacob Yuan 2023-10-14 21:21:24 -04:00
parent f29543f2c9
commit 537d77c397

View file

@ -65,8 +65,8 @@ return {
"mfussenegger/nvim-dap-python", "mfussenegger/nvim-dap-python",
-- stylua: ignore -- stylua: ignore
keys = { keys = {
{ "<leader>dPt", function() require('dap-python').test_method() end, desc = "Debug Method" }, { "<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" }, { "<leader>dPc", function() require('dap-python').test_class() end, desc = "Debug Class", ft = "python" },
}, },
config = function() config = function()
local path = require("mason-registry").get_package("debugpy"):get_install_path() local path = require("mason-registry").get_package("debugpy"):get_install_path()