1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-11-14 05:21:13 +00:00

[neovim] Customize render-markdown

This commit is contained in:
Daniel Carrillo 2024-07-24 09:09:34 +02:00
parent e3e411b629
commit 9343a1e579
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
4 changed files with 19 additions and 0 deletions

View File

@ -295,3 +295,11 @@ keymap(
"<cmd>lua require'ufo'.peekFoldedLinesUnderCursor()<cr>",
vim.tbl_extend("force", opts, { desc = "Peek fold" })
)
-- Markdown
keymap(
"n",
"<leader>m",
":RenderMarkdown toggle<cr>",
vim.tbl_extend("force", opts, { desc = "Toggle markdown rendering" })
)

View File

@ -249,6 +249,11 @@ require("lazy").setup({
end,
ft = { "markdown" },
},
{
"MeanderingProgrammer/markdown.nvim",
main = "render-markdown",
name = "render-markdown",
},
-- Copilot
{

View File

@ -18,6 +18,7 @@ require("plugins.noice")
require("plugins.trouble")
require("plugins.autosave")
require("plugins.markdowntoc")
require("plugins.render-markdown")
require("plugins.diffview")
require("plugins.align")
require("plugins.ufo")

View File

@ -0,0 +1,5 @@
require("render-markdown").setup({
bullet = {
icons = { "·", "·", "·", "·" },
},
})