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 authored and GitHub committed 2023-10-15 07:21:17 +02:00
1 parent 5ea0dd716a
commit 7c60431c58
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ return {
"<leader>cp",
ft = "markdown",
"<cmd>MarkdownPreviewToggle<cr>",
desc = "Peek (Markdown Preview)",
desc = "Markdown Preview",
},
},
config = function()
+2 -2
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()