1
0
Fork 1
Dotfiles_nvim/lua/toolchain/text/plugins.lua
2024-07-02 23:52:43 +02:00

36 lines
938 B
Lua

return {
{
'mrjones2014/mdpreview.nvim',
ft = 'markdown',
dependencies = {
'norcalli/nvim-terminal.lua',
},
config = function()
require('mdpreview').setup({
cli_args = {
'glow',
'-s',
'~/.config/glow/catppuccin-macchiato.json',
'-w',
'1',
'--local',
},
renderer = {
opts = {
win_opts = {
number = true,
wrap = false,
},
},
},
})
vim.keymap.set(
'n',
'<Leader>mp',
':Mdpreview<CR>',
{ desc = 'Show Markdown Preview' }
)
end,
},
}