Dotfiles/.config/nvim/lua/plugins/editor_markdown_preview.lua
2024-05-13 20:43:31 +02:00

30 lines
730 B
Lua

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,
}