fix(python): add ft to Python keymaps, and fix "Markdown Preview" toggle description (#1729)

* feat(python): add `ft` to keymaps

* fix(markdown): fix toggle keymap description
This commit is contained in:
jyuan0
2023-10-15 01:21:17 -04:00
committed by GitHub
parent 5ea0dd716a
commit 7c60431c58
2 changed files with 3 additions and 3 deletions

View File

@ -65,8 +65,8 @@ 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" },
{ "<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()