aboutsummaryrefslogtreecommitdiffstats
path: root/lua/mason-registry/index/powershell-editor-services/init.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-02-20 22:19:39 +0100
committerGitHub <noreply@github.com>2023-02-20 22:19:39 +0100
commitb8a6632a0f2d263199d5d480ca85477fe0f414ab (patch)
tree57e1ee0f3cef078ec144ecdf1b2fa861acf47755 /lua/mason-registry/index/powershell-editor-services/init.lua
parentchore: autogenerate (#1015) (diff)
downloadmason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.gz
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.bz2
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.lz
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.xz
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.tar.zst
mason-b8a6632a0f2d263199d5d480ca85477fe0f414ab.zip
feat: configurable registries (#1016)
Diffstat (limited to 'lua/mason-registry/index/powershell-editor-services/init.lua')
-rw-r--r--lua/mason-registry/index/powershell-editor-services/init.lua21
1 files changed, 21 insertions, 0 deletions
diff --git a/lua/mason-registry/index/powershell-editor-services/init.lua b/lua/mason-registry/index/powershell-editor-services/init.lua
new file mode 100644
index 00000000..ab52478d
--- /dev/null
+++ b/lua/mason-registry/index/powershell-editor-services/init.lua
@@ -0,0 +1,21 @@
+local Pkg = require "mason-core.package"
+local std = require "mason-core.managers.std"
+local github = require "mason-core.managers.github"
+
+return Pkg.new {
+ name = "powershell-editor-services",
+ desc = [[A common platform for PowerShell development support in any editor or application!]],
+ homepage = "https://github.com/PowerShell/PowerShellEditorServices",
+ languages = { Pkg.Lang.PowerShell },
+ categories = { Pkg.Cat.LSP },
+ ---@async
+ install = function()
+ std.ensure_executable("pwsh", { help_url = "https://github.com/PowerShell/PowerShell#get-powershell" })
+ github
+ .unzip_release_file({
+ repo = "PowerShell/PowerShellEditorServices",
+ asset_file = "PowerShellEditorServices.zip",
+ })
+ .with_receipt()
+ end,
+}