Skip to content

Commit

Permalink
fix(neovim): an error caused by markdown-preview.nvim when updating
Browse files Browse the repository at this point in the history
  • Loading branch information
whisperpine committed Nov 17, 2024
1 parent 3d2440c commit 0e60d54
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion home/base/neovim/nvim/lua/plugins/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ return {
{
"iamcco/markdown-preview.nvim",
cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
build = "sh -c 'cd app && yarn install'",
-- build = "sh -c 'cd app && yarn install'",
build = "sh -c 'cd app && yarn install && git restore .'",
init = function()
vim.g.mkdp_filetypes = { "markdown" }
end,
Expand Down

0 comments on commit 0e60d54

Please sign in to comment.