diff options
| author | William Boman <william@redwill.se> | 2022-04-11 01:04:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-11 01:04:06 +0200 |
| commit | 89abfcd2fbd56c3246772726a85ed0e548d77d3b (patch) | |
| tree | 5a90c3277ee853fe6c1c04be09982b94472f45ab /lua/nvim-lsp-installer/servers/nickel_ls/init.lua | |
| parent | sumneko_lua: support Linux arm64 (#391) (diff) | |
| download | mason-89abfcd2fbd56c3246772726a85ed0e548d77d3b.tar mason-89abfcd2fbd56c3246772726a85ed0e548d77d3b.tar.gz mason-89abfcd2fbd56c3246772726a85ed0e548d77d3b.tar.bz2 mason-89abfcd2fbd56c3246772726a85ed0e548d77d3b.tar.lz mason-89abfcd2fbd56c3246772726a85ed0e548d77d3b.tar.xz mason-89abfcd2fbd56c3246772726a85ed0e548d77d3b.tar.zst mason-89abfcd2fbd56c3246772726a85ed0e548d77d3b.zip | |
make install context available via coroutine context (#586)
Diffstat (limited to 'lua/nvim-lsp-installer/servers/nickel_ls/init.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/servers/nickel_ls/init.lua | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/lua/nvim-lsp-installer/servers/nickel_ls/init.lua b/lua/nvim-lsp-installer/servers/nickel_ls/init.lua index bf87cd21..01bf1004 100644 --- a/lua/nvim-lsp-installer/servers/nickel_ls/init.lua +++ b/lua/nvim-lsp-installer/servers/nickel_ls/init.lua @@ -1,6 +1,5 @@ local path = require "nvim-lsp-installer.path" local server = require "nvim-lsp-installer.server" -local installer = require "nvim-lsp-installer.core.installer" local cargo = require "nvim-lsp-installer.core.managers.cargo" local git = require "nvim-lsp-installer.core.managers.git" @@ -11,19 +10,16 @@ return function(name, root_dir) homepage = "https://nickel-lang.org/", languages = { "nickel" }, async = true, - installer = installer.serial { - git.clone { "https://github.com/tweag/nickel" }, - ---@param ctx InstallContext - function(ctx) - ctx.spawn.cargo { - "install", - "--root", - ".", - "--path", - path.concat { "lsp", "nls" }, - } - end, - }, + installer = function(ctx) + git.clone({ "https://github.com/tweag/nickel" }).with_receipt() + ctx.spawn.cargo { + "install", + "--root", + ".", + "--path", + path.concat { "lsp", "nls" }, + } + end, default_options = { cmd_env = cargo.env(root_dir), }, |
