feat(nvim): some markdown changes

This commit is contained in:
Sergio Laín 2025-06-23 02:18:19 +02:00
parent c0c5d5611d
commit 594058127c
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438
2 changed files with 16 additions and 1 deletions

View file

@ -1,5 +1,16 @@
vim.keymap.set({ "n", "x" }, "]#", [[/^#\+ .*<CR>]], { desc = "Next Heading", buffer = true }) 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" }, "[#", [[?^#\+ .*<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 -- stylua: ignore start
if LazyVim.has("markdowny.nvim") then if LazyVim.has("markdowny.nvim") then

View file

@ -44,7 +44,11 @@ return {
{ {
"MeanderingProgrammer/render-markdown.nvim", "MeanderingProgrammer/render-markdown.nvim",
opts = { opts = {
preset = "lazy", render_modes = { "n", "c", "t" },
checkbox = {
enabled = true,
},
preset = "obsidian",
}, },
}, },
{ {