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