Dotfiles/.config/nvim/lua/plugins/editor_markdown_preview.lua

31 lines
730 B
Lua
Raw Normal View History

2024-05-13 18:43:31 +00:00
return {
"mrjones2014/mdpreview.nvim",
ft = "markdown",
dependencies = {
"norcalli/nvim-terminal.lua",
config = true,
},
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>")
end,
}