Skip to content

run make to build plugin dependecies #866

@bluebrown

Description

@bluebrown

Contributing guidelines

Module(s)

mini.deps

Description

I want to install luasnip https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#install.

This requires to run make after pulling the plugin make install_jsregexp.

Neovim version

NVIM v0.10.0-dev-3050+gcb24a3907

Steps to reproduce

I am trying something like this:

later(function()
  local build = function(path) vim.system({ "make", "-C", path, "install_jsregexp" }) end
  add({
    source = "L3MON4D3/LuaSnip",
    hooks = {
      post_install = function(path)
        later(function() build(path) end)
      end,
      post_checkout = build,
    },
  })
  local luasnip = require("luasnip")
  require("luasnip").config.setup({})
end)

Expected behavior

jsregexp is available to luasnip after starting vim

Actual behavior

But :checkhealth is reporting

luasnip ~
- WARNING             For Variable/Placeholder-transformations, luasnip requires
              the jsregexp library. See `:help |luasnip-lsp-snippets-transformations`| for advice

There are no other messages while starting vim or reinstalling plugins. And nothing in :DepsShowLog.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions