36 lines
938 B
Lua
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,
|
|
},
|
|
}
|