aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/servers/phpactor/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-04-06 00:25:50 +0200
committerGitHub <noreply@github.com>2022-04-06 00:25:50 +0200
commit999476c324b26223aaf409a84497215e18d74499 (patch)
tree323cc5b072471e5e78ee94b273157779bbcb9611 /lua/nvim-lsp-installer/servers/phpactor/init.lua
parentfix(taplo): use crate distribution (#576) (diff)
downloadmason-999476c324b26223aaf409a84497215e18d74499.tar
mason-999476c324b26223aaf409a84497215e18d74499.tar.gz
mason-999476c324b26223aaf409a84497215e18d74499.tar.bz2
mason-999476c324b26223aaf409a84497215e18d74499.tar.lz
mason-999476c324b26223aaf409a84497215e18d74499.tar.xz
mason-999476c324b26223aaf409a84497215e18d74499.tar.zst
mason-999476c324b26223aaf409a84497215e18d74499.zip
switch majority of installers to async implementation (#574)
Diffstat (limited to 'lua/nvim-lsp-installer/servers/phpactor/init.lua')
-rw-r--r--lua/nvim-lsp-installer/servers/phpactor/init.lua23
1 files changed, 11 insertions, 12 deletions
diff --git a/lua/nvim-lsp-installer/servers/phpactor/init.lua b/lua/nvim-lsp-installer/servers/phpactor/init.lua
index 45ce5ccd..af5d863c 100644
--- a/lua/nvim-lsp-installer/servers/phpactor/init.lua
+++ b/lua/nvim-lsp-installer/servers/phpactor/init.lua
@@ -1,10 +1,10 @@
-local installers = require "nvim-lsp-installer.installers"
local path = require "nvim-lsp-installer.path"
local server = require "nvim-lsp-installer.server"
-local composer = require "nvim-lsp-installer.installers.composer"
-local std = require "nvim-lsp-installer.installers.std"
-local context = require "nvim-lsp-installer.installers.context"
+local composer = require "nvim-lsp-installer.core.managers.composer"
+local git = require "nvim-lsp-installer.core.managers.git"
+local installer = require "nvim-lsp-installer.core.installer"
local process = require "nvim-lsp-installer.process"
+local platform = require "nvim-lsp-installer.platform"
return function(name, root_dir)
return server.Server:new {
@@ -12,14 +12,13 @@ return function(name, root_dir)
root_dir = root_dir,
homepage = "https://phpactor.readthedocs.io/en/master/",
languages = { "php" },
- installer = installers.when {
- unix = {
- std.git_clone "https://github.com/phpactor/phpactor.git",
- composer.install(),
- context.receipt(function(receipt)
- receipt:with_primary_source(receipt.git_remote "https://github.com/phpactor/phpactor.git")
- end),
- },
+ async = true,
+ installer = installer.serial {
+ function()
+ assert(platform.is_unix, "Phpactor only supports UNIX environments.")
+ end,
+ git.clone { "https://github.com/phpactor/phpactor.git" },
+ composer.install(),
},
default_options = {
cmd_env = {