kickstart.nvim/lua/custom/plugins/render-markdown.lua

34 lines
912 B
Lua
Raw Permalink Normal View History

2024-10-09 17:03:09 +02:00
return {
'MeanderingProgrammer/render-markdown.nvim',
opts = {},
dependencies = { 'nvim-treesitter/nvim-treesitter' },
config = function()
require('render-markdown').setup {
enabled = true,
heading = {
width = 'block',
},
2024-10-09 17:03:09 +02:00
bullet = {
right_pad = 1,
},
checkbox = {
enabled = true,
position = 'inline',
unchecked = {
icon = '👀',
highlight = 'RenderMarkdownUnchecked',
},
checked = {
icon = '',
highlight = 'RenderMarkdownChecked',
},
custom = {
doing = { raw = '[/]', rendered = '🔜', highlight = 'RenderMarkdownTodo' },
cancelled = { raw = '[-]', rendered = '', highlight = 'RenderMarkdownBullet' },
},
},
}
vim.keymap.set('n', '<leader>rm', ':RenderMarkdown toggle<CR>', { silent = true })
end,
}