iamcco / iamcco/markdown-preview.nvim

npm install with lazy error

Open
#616 3 comments 5 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

Using lazy package manager. Since a few weeks, markdown-preview installed with npm gives an error message:

```
You have local changes in `/.../.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.
```

I have to manually uninstall and reinstall every time this error appears.
Maybe this yarn.lock file shouldn't be tracked by git?

**To Reproduce**

Use the follow config in lazy:

```lua
{
'iamcco/markdown-preview.nvim',
lazy = true,
build = 'cd app && npm install',
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
ft = { 'markdown' },
keys = {
{ '', 'MarkdownPreviewToggle', desc = 'Toggle MarkdownPreview'}
},
config = function()
vim.g.mkdp_filetypes = { 'markdown' }
vim.g.mkdp_theme = 'light'
end,
}
```

**Desktop (please complete the following information):**
- OS: macOS, Linux, FreeBSD

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.