AutoYADM commit: 2024-12-20 23:45:02

This commit is contained in:
Daniel Fichtinger 2024-12-20 23:45:02 -05:00
parent 3a40c45191
commit a5b3a5cda5
2 changed files with 34 additions and 0 deletions

View file

@ -0,0 +1,33 @@
return {
"MeanderingProgrammer/render-markdown.nvim",
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.icons" },
opts = {
code = {
sign = false,
width = "block",
right_pad = 1,
},
heading = {
sign = false,
-- icons = {},
},
},
ft = { "markdown", "rmd" },
config = function(_, opts)
require("render-markdown").setup(opts)
Snacks.toggle({
name = "Render Markdown",
get = function()
return require("render-markdown.state").enabled
end,
set = function(enabled)
local m = require("render-markdown")
if enabled then
m.enable()
else
m.disable()
end
end,
}):map("<leader>um")
end,
}