diff --git a/.config/nvim/after/ftplugin/markdown.lua b/.config/nvim/after/ftplugin/markdown.lua index 1d70c21e..fdaa1dfb 100644 --- a/.config/nvim/after/ftplugin/markdown.lua +++ b/.config/nvim/after/ftplugin/markdown.lua @@ -1,5 +1,16 @@ vim.keymap.set({ "n", "x" }, "]#", [[/^#\+ .*]], { desc = "Next Heading", buffer = true }) vim.keymap.set({ "n", "x" }, "[#", [[?^#\+ .*]], { desc = "Prev Heading", buffer = true }) +vim.keymap.set({ "n", "x" }, "gj", [[/^#\+ .*]], { desc = "Next Heading", buffer = true }) +vim.keymap.set({ "n", "x" }, "gk", [[?^#\+ .*]], { desc = "Prev Heading", buffer = true }) + +-- Bold selected text +vim.keymap.set("n", "", function() + vim.cmd("normal viw") + vim.cmd("normal 2gsa*") +end, { desc = "Bold Selection" }) +vim.keymap.set("v", "", function() + vim.cmd("normal 2gsa*") +end, { desc = "Bold Selection" }) -- stylua: ignore start if LazyVim.has("markdowny.nvim") then diff --git a/.config/nvim/lua/plugins/extras/lang/markdown-extended.lua b/.config/nvim/lua/plugins/extras/lang/markdown-extended.lua index 1904cec2..6ad3e262 100644 --- a/.config/nvim/lua/plugins/extras/lang/markdown-extended.lua +++ b/.config/nvim/lua/plugins/extras/lang/markdown-extended.lua @@ -44,7 +44,11 @@ return { { "MeanderingProgrammer/render-markdown.nvim", opts = { - preset = "lazy", + render_modes = { "n", "c", "t" }, + checkbox = { + enabled = true, + }, + preset = "obsidian", }, }, {