feat(nvim): some markdown changes
This commit is contained in:
parent
c0c5d5611d
commit
594058127c
2 changed files with 16 additions and 1 deletions
|
@ -1,5 +1,16 @@
|
|||
vim.keymap.set({ "n", "x" }, "]#", [[/^#\+ .*<CR>]], { desc = "Next Heading", buffer = true })
|
||||
vim.keymap.set({ "n", "x" }, "[#", [[?^#\+ .*<CR>]], { desc = "Prev Heading", buffer = true })
|
||||
vim.keymap.set({ "n", "x" }, "gj", [[/^#\+ .*<CR>]], { desc = "Next Heading", buffer = true })
|
||||
vim.keymap.set({ "n", "x" }, "gk", [[?^#\+ .*<CR>]], { desc = "Prev Heading", buffer = true })
|
||||
|
||||
-- Bold selected text
|
||||
vim.keymap.set("n", "<C-b>", function()
|
||||
vim.cmd("normal viw")
|
||||
vim.cmd("normal 2gsa*")
|
||||
end, { desc = "Bold Selection" })
|
||||
vim.keymap.set("v", "<C-b>", function()
|
||||
vim.cmd("normal 2gsa*")
|
||||
end, { desc = "Bold Selection" })
|
||||
|
||||
-- stylua: ignore start
|
||||
if LazyVim.has("markdowny.nvim") then
|
||||
|
|
|
@ -44,7 +44,11 @@ return {
|
|||
{
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
opts = {
|
||||
preset = "lazy",
|
||||
render_modes = { "n", "c", "t" },
|
||||
checkbox = {
|
||||
enabled = true,
|
||||
},
|
||||
preset = "obsidian",
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue