diff --git a/.config/nvim/lua/plugins/markdown-preview.lua b/.config/nvim/lua/plugins/markdown-preview.lua index 145b024a..70d05ff6 100644 --- a/.config/nvim/lua/plugins/markdown-preview.lua +++ b/.config/nvim/lua/plugins/markdown-preview.lua @@ -31,6 +31,6 @@ return { end end, }) - Snacks.toggle.map(mdscrolltoggle, "mP", { desc = "Toggle Markdown Preview Scroll" }) + -- Snacks.toggle.map(mdscrolltoggle, "mP", { desc = "Toggle Markdown Preview Scroll" }) end, } diff --git a/.config/nvim/lua/plugins/markdown.lua b/.config/nvim/lua/plugins/markdown.lua index d54bbaa1..3b3cc61b 100644 --- a/.config/nvim/lua/plugins/markdown.lua +++ b/.config/nvim/lua/plugins/markdown.lua @@ -1,35 +1,35 @@ -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 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, + -- opts = opts, } return spec