dotfiles/config/nvim/lua/fschauen/plugins/markdown-preview.lua
Fernando Schauenburg e5793203f2 Revert "nvim: fix opening browser with Markdown preview on macOS + Firefox + tmux"
This reverts commit 50dfc1efa6.

It seems that the issue with open(1) was temporary and fixed by
restarting the machine.
2024-07-14 23:52:33 +02:00

25 lines
486 B
Lua

return {
"iamcco/markdown-preview.nvim",
build = function()
vim.fn["mkdp#util#install"]()
end,
cmd = {
"MarkdownPreview",
"MarkdownPreviewStop",
"MarkdownPreviewToggle",
},
ft = "markdown",
init = function()
vim.g.mkdp_theme = "dark"
-- Don't close the preview when switching to another buffer.
vim.g.mkdp_auto_close = 0
-- Show preview page URL in command line when opening preview page.
vim.g.mkdp_echo_preview_url = 1
end,
}