Skip to content

Vim:E117: Unknown function: mkdp#util#install when install by lazy.nvim #690

@sontungexpt

Description

@sontungexpt

Describe the bug

  • I use lazy.nvim to install this plugin followed the instructions but it seems the build failed.
    {
    "iamcco/markdown-preview.nvim",
    cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
    ft = { "markdown" },
    build = function() vim.fn"mkdp#util#install" end,
    config = function() vim.g.mkdp_auto_close = 1 end,
    },

  • So i fixed it by this #691, is it the right way?

To Reproduce
Steps to reproduce the behavior:

  1. Remove the store of this plugin
  2. Install it again
  3. Wait to completed
  4. See error

Expected behavior
Build successfully

Screenshots
image

Desktop (please complete the following information):

  • OS: Arch linux: 6.9.10-arch1-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions