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:
1 parent
5ea0dd716a
commit
7c60431c58
2 files changed
+3
-3
No files matched your search
@@ -54,7 +54,7 @@ return {
|
||||
"<leader>cp",
|
||||
ft = "markdown",
|
||||
"<cmd>MarkdownPreviewToggle<cr>",
|
||||
desc = "Peek (Markdown Preview)",
|
||||
desc = "Markdown Preview",
|
||||
},
|
||||
},
|
||||
config = function()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user