AutoYADM commit: 2024-12-12 21:30:03

This commit is contained in:
Daniel Fichtinger 2024-12-12 21:30:03 -05:00
parent a2c23ff5d6
commit 490d821b4e
2 changed files with 30 additions and 30 deletions

View file

@ -31,6 +31,6 @@ return {
end end
end, end,
}) })
Snacks.toggle.map(mdscrolltoggle, "<leader>mP", { desc = "Toggle Markdown Preview Scroll" }) -- Snacks.toggle.map(mdscrolltoggle, "<leader>mP", { desc = "Toggle Markdown Preview Scroll" })
end, end,
} }

View file

@ -1,35 +1,35 @@
local function retmap() -- local function retmap()
local m = { -- local m = {
inline_surround_toggle = "<leader>mm", -- (string|boolean) toggle inline style -- inline_surround_toggle = "<leader>mm", -- (string|boolean) toggle inline style
inline_surround_toggle_line = "<leader>mmm", -- (string|boolean) line-wise toggle inline style -- inline_surround_toggle_line = "<leader>mmm", -- (string|boolean) line-wise toggle inline style
inline_surround_delete = "<leader>md", -- (string|boolean) delete emphasis surrounding cursor -- inline_surround_delete = "<leader>md", -- (string|boolean) delete emphasis surrounding cursor
inline_surround_change = "<leader>mc", -- (string|boolean) change emphasis surrounding cursor -- inline_surround_change = "<leader>mc", -- (string|boolean) change emphasis surrounding cursor
-- link_add = "<leader>ml", -- (string|boolean) add link -- -- link_add = "<leader>ml", -- (string|boolean) add link
-- link_follow = "<leader>mx", -- (string|boolean) follow link -- -- link_follow = "<leader>mx", -- (string|boolean) follow link
go_curr_heading = "<leader>mh", -- go_curr_heading = "<leader>mh",
go_parent_heading = "<leader>mH", -- go_parent_heading = "<leader>mH",
go_next_heading = "<M-n>", -- go_next_heading = "<M-n>",
go_prev_heading = "<M-e>", -- go_prev_heading = "<M-e>",
} -- }
require("which-key").add({ -- require("which-key").add({
{ "<leader>m", group = "Markdown" }, -- { "<leader>m", group = "Markdown" },
}) -- })
vim.keymap.set("n", "<leader>mu", "<cmd>MDListItemAbove<cr>", { desc = "Insert List Item Above", silent = true }) -- vim.keymap.set("n", "<leader>mu", "<cmd>MDListItemAbove<cr>", { desc = "Insert List Item Above", silent = true })
vim.keymap.set( -- vim.keymap.set(
{ "n", "x" }, -- { "n", "x" },
"<leader>ml", -- "<leader>ml",
"<cmd>MDResetListNumbering<cr>", -- "<cmd>MDResetListNumbering<cr>",
{ desc = "Reset List Numbering", silent = true } -- { desc = "Reset List Numbering", silent = true }
) -- )
return m -- return m
end -- end
local opts = { -- local opts = {
mappings = retmap(), -- mappings = retmap(),
} -- }
local spec = { local spec = {
"tadmccorkle/markdown.nvim", "tadmccorkle/markdown.nvim",
ft = "markdown", ft = "markdown",
opts = opts, -- opts = opts,
} }
return spec return spec