Skip to content

What would be the best way to distribute a binary plugin #1107

Answered by ModProg
ModProg asked this question in Q&A
Discussion options

You must be logged in to vote

well, it was more a question if someone knows a better way than the relatively complex installation instruction of:

{
    'ModProg/test.nvim',
    run = function(plugin)
        local await = require 'packer.async'.wait
        local jobs = require 'packer.jobs'

        local neovim_version = vim.version().major .. '.' .. vim.version().minor
        local os
        if jit.os == "Linux" then
            os = "linux"
        elseif jit.os == "Windows" then
            os = "windows"
        else
            os = "macos"
        end
        await(jobs.run({ "./install", "download", os, neovim_version, "latest" }, { cwd = plugin.install_path }))
    end,
}

I thought it would make sense to…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ModProg
Comment options

@yutkat
Comment options

@ModProg
Comment options

Answer selected by ModProg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants