AutoYADM commit: 2025-01-03 12:45:02
This commit is contained in:
parent
4e7ea90d76
commit
d5660b92fc
2 changed files with 31 additions and 31 deletions
|
@ -51,7 +51,7 @@ vim.api.nvim_create_autocmd("VimEnter", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
local md = false
|
local md = true
|
||||||
if md then
|
if md then
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = "markdown",
|
pattern = "markdown",
|
||||||
|
|
|
@ -1,37 +1,37 @@
|
||||||
-- 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 = {
|
|
||||||
-- mappings = retmap(),
|
|
||||||
-- }
|
|
||||||
local spec = {
|
local spec = {
|
||||||
"tadmccorkle/markdown.nvim",
|
"tadmccorkle/markdown.nvim",
|
||||||
ft = "markdown",
|
ft = "markdown",
|
||||||
-- cmd = "MDListItemBelow",
|
-- cmd = "MDListItemBelow",
|
||||||
opts = {},
|
opts = function()
|
||||||
-- opts = opts,
|
local opts = {
|
||||||
|
mappings = retmap(),
|
||||||
|
}
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
return spec
|
return spec
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue