1
0
mirror of https://github.com/dcarrillo/dotfiles.git synced 2024-12-22 16:18:00 +00:00

[neovim] Fix markdown preview

This commit is contained in:
Daniel Carrillo 2023-12-12 20:21:45 +01:00
parent d3ee381b08
commit 8d4f9cf213
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16

View File

@ -240,7 +240,9 @@ require("lazy").setup({
{ "mzlogin/vim-markdown-toc" }, { "mzlogin/vim-markdown-toc" },
{ {
"iamcco/markdown-preview.nvim", "iamcco/markdown-preview.nvim",
build = "cd app && npm install", build = function()
vim.fn["mkdp#util#install"]()
end,
init = function() init = function()
vim.g.mkdp_filetypes = { "markdown" } vim.g.mkdp_filetypes = { "markdown" }
end, end,