Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy update constantly fails #704

Open
boydkelly opened this issue Oct 28, 2024 · 2 comments
Open

Lazy update constantly fails #704

boydkelly opened this issue Oct 28, 2024 · 2 comments

Comments

@boydkelly
Copy link

Every time runniing lazy Update I get the output below. pressing x does not remove the plugin. I need to go into .local/share/lazy and rm -fr the plugin and let it reinstall. Any suggestions here?

Failed (1)
○ markdown-preview.nvim  MarkdownPreviewToggle  MarkdownPreview  MarkdownPreviewStop  markdown
You have local changes in /home/bkelly/.local/share/nvim/lazy/markdown-preview.nvim:
* app/yarn.lock
Please remove them to update.
You can also press x to remove the plugin and then I to install it again.
app/yarn.lock
You have local changes in /home/bkelly/.local/share/nvim/lazy/markdown-preview.nvim:
* app/yarn.lock
Please remove them to update.
You can also press x to remove the plugin and then I to install it again.

@Sahas-Ananth
Copy link

In #612 thread the solution is given here. Basically, change your plugin install file to:

{
  "iamcco/markdown-preview.nvim",
  cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
  build = "cd app && npm install && git restore .",
  -- or if you use yarn: (I have not checked this, I use npm)
  -- build = "cd app && yarn install && git restore .",
  init = function()
    vim.g.mkdp_filetypes = { "markdown" }
  end,
  ft = { "markdown" },
},

@whisperpine
Copy link

build = "cd app && yarn install && git restore ."

Thanks! It works for me.
For someone who still encounters the error when :Lazy update:
Delete ~/.local/share/nvim/lazy/markdown-preview.nvim and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants