AutoYADM commit: 2024-12-20 23:45:02
This commit is contained in:
parent
3a40c45191
commit
a5b3a5cda5
2 changed files with 34 additions and 0 deletions
33
.config/nvim/lua/plugins/render-markdown.lua
Normal file
33
.config/nvim/lua/plugins/render-markdown.lua
Normal 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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue