diff options
| author | William Boman <william@redwill.se> | 2023-04-08 14:29:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-08 14:29:03 +0200 |
| commit | 802ec71625dac8c6a9617b22abdda5e9bf3f6717 (patch) | |
| tree | afe053439aeeff642e5f450b58a2d0dd842b1d44 | |
| parent | fix(powershell): close stdin (#1197) (diff) | |
| download | mason-802ec71625dac8c6a9617b22abdda5e9bf3f6717.tar mason-802ec71625dac8c6a9617b22abdda5e9bf3f6717.tar.gz mason-802ec71625dac8c6a9617b22abdda5e9bf3f6717.tar.bz2 mason-802ec71625dac8c6a9617b22abdda5e9bf3f6717.tar.lz mason-802ec71625dac8c6a9617b22abdda5e9bf3f6717.tar.xz mason-802ec71625dac8c6a9617b22abdda5e9bf3f6717.tar.zst mason-802ec71625dac8c6a9617b22abdda5e9bf3f6717.zip | |
chore: migrate packages (#1198)
32 files changed, 40 insertions, 798 deletions
diff --git a/PACKAGES.md b/PACKAGES.md index 9261540a..1f286755 100644 --- a/PACKAGES.md +++ b/PACKAGES.md @@ -2204,7 +2204,7 @@ Categories: `Linter` ``` # neocmakelsp -> CMake LSP implementation based on Tower and Tree-sitter +> CMake LSP implementation based on Tower and Tree-sitter. Homepage: [https://github.com/Decodetalkers/neocmakelsp](https://github.com/Decodetalkers/neocmakelsp) Languages: `CMake` @@ -2237,8 +2237,9 @@ Categories: `LSP` ``` # nickel-lang-lsp -> The Nickel Language Server (NLS) is a language server for the Nickel programming language. NLS offers error -messages, type hints, and auto-completion right in your favorite LSP-enabled editor. +> The Nickel Language Server (NLS) is a language server for the Nickel programming language. NLS offers error messages, +type hints, and auto-completion right in your favorite LSP-enabled editor. + Homepage: [https://nickel-lang.org/](https://nickel-lang.org/) Languages: `Nickel` @@ -2249,7 +2250,7 @@ Categories: `LSP` ``` # nil -> Language Server for Nix +> Language Server for Nix. Homepage: [https://github.com/oxalica/nil](https://github.com/oxalica/nil) Languages: `Nix` @@ -2260,7 +2261,7 @@ Categories: `LSP` ``` # nimlsp -> Language Server Protocol implementation for Nim +> Language Server Protocol implementation for Nim. Homepage: [https://github.com/PMunch/nimlsp](https://github.com/PMunch/nimlsp) Languages: `Nim` @@ -2293,7 +2294,7 @@ Categories: `LSP` ``` # ocaml-lsp -> OCaml Language Server Protocol implementation +> OCaml Language Server Protocol implementation. Homepage: [https://github.com/ocaml/ocaml-lsp](https://github.com/ocaml/ocaml-lsp) Languages: `OCaml` @@ -2307,6 +2308,7 @@ Categories: `LSP` > ocamlformat is a tool for formatting OCaml code. It automatically adjusts the layout of your code to follow the recommended style guidelines, making it easier to read and understand. + Homepage: [https://github.com/ocaml-ppx/ocamlformat](https://github.com/ocaml-ppx/ocamlformat) Languages: `OCaml` Categories: `Formatter` @@ -2330,6 +2332,7 @@ Categories: `LSP` > OmniSharp language server based on Roslyn workspaces. This version of Omnisharp requires dotnet (.NET 6.0) to be installed. + Homepage: [https://github.com/OmniSharp/omnisharp-roslyn](https://github.com/OmniSharp/omnisharp-roslyn) Languages: `C#` Categories: `LSP` @@ -2339,8 +2342,9 @@ Categories: `LSP` ``` # omnisharp-mono -> OmniSharp language server based on Roslyn workspaces. This version of Omnisharp requires Mono to be installed on -Linux & macOS. +> OmniSharp language server based on Roslyn workspaces. This version of Omnisharp requires Mono to be installed on Linux +& macOS. + Homepage: [https://github.com/OmniSharp/omnisharp-roslyn](https://github.com/OmniSharp/omnisharp-roslyn) Languages: `C#` @@ -2351,7 +2355,7 @@ Categories: `LSP` ``` # opencl-language-server -> Provides an OpenCL kernel diagnostics +> Provides an OpenCL kernel diagnostics. Homepage: [https://github.com/Galarius/opencl-language-server](https://github.com/Galarius/opencl-language-server) Languages: `OpenCL` @@ -2362,10 +2366,10 @@ Categories: `LSP` ``` # openedge-language-server -> OpenEdge Language Server +> OpenEdge Language Server. Homepage: [https://github.com/vscode-abl/vscode-abl](https://github.com/vscode-abl/vscode-abl) -Languages: `Progress` +Languages: `Progress` `OpenEdge` Categories: `LSP` ``` @@ -2384,7 +2388,7 @@ Categories: `LSP` ``` # perlnavigator -> Perl Language Server that includes perl critic and code navigation +> Perl Language Server that includes perl critic and code navigation. Homepage: [https://github.com/bscan/PerlNavigator](https://github.com/bscan/PerlNavigator) Languages: `Perl` @@ -2395,9 +2399,10 @@ Categories: `LSP` ``` # php-cs-fixer -> The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards; whether you want to -follow PHP coding standards as defined in the PSR-1, PSR-2, etc., or other community driven ones like the -Symfony one. You can also define your (team's) style through configuration.') +> The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards; whether you want to follow PHP +coding standards as defined in the PSR-1, PSR-2, etc., or other community driven ones like the Symfony one. You can +also define your (team's) style through configuration. + Homepage: [https://github.com/PHP-CS-Fixer/PHP-CS-Fixer](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer) Languages: `PHP` @@ -2408,7 +2413,7 @@ Categories: `Formatter` ``` # php-debug-adapter -> PHP Debug Adapter πβ +> PHP Debug Adapter πβ. Homepage: [https://github.com/xdebug/vscode-php-debug](https://github.com/xdebug/vscode-php-debug) Languages: `PHP` @@ -2419,8 +2424,9 @@ Categories: `DAP` ``` # phpactor -> Phpactor is an intelligent Completion and Refactoring tool for PHP which is available over itβs own RPC protocol -and as a Language Server. +> Phpactor is an intelligent Completion and Refactoring tool for PHP which is available over itβs own RPC protocol and +as a Language Server. + Homepage: [https://phpactor.readthedocs.io/en/master/](https://phpactor.readthedocs.io/en/master/) Languages: `PHP` @@ -2453,8 +2459,9 @@ Categories: `Linter` ``` # phpmd -> PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. -PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend. +> PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can +be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend. + Homepage: [https://github.com/phpmd/phpmd](https://github.com/phpmd/phpmd) Languages: `PHP` @@ -2478,7 +2485,7 @@ Categories: `Linter` > Laravel Pint is an opinionated PHP code style fixer for minimalists. -Homepage: [https://laravel.com/docs/9.x/pint](https://laravel.com/docs/9.x/pint) +Homepage: [https://laravel.com/docs/pint](https://laravel.com/docs/pint) Languages: `PHP` Categories: `Formatter` @@ -2487,7 +2494,7 @@ Categories: `Formatter` ``` # powershell-editor-services -> A common platform for PowerShell development support in any editor or application! +> A common platform for PowerShell development support in any editor or application. Homepage: [https://github.com/PowerShell/PowerShellEditorServices](https://github.com/PowerShell/PowerShellEditorServices) Languages: `PowerShell` @@ -2498,10 +2505,10 @@ Categories: `LSP` ``` # prettier -> Prettier is an opinionated code formatter +> Prettier is an opinionated code formatter. Homepage: [https://prettier.io](https://prettier.io) -Languages: `JavaScript` `TypeScript` `Flow` `JSX` `JSON` `CSS` `SCSS` `LESS` `HTML` `Vue` `Angular` `GraphQL` `Markdown` `YAML` +Languages: `Angular` `CSS` `Flow` `GraphQL` `HTML` `JSON` `JSX` `JavaScript` `LESS` `Markdown` `SCSS` `TypeScript` `Vue` `YAML` Categories: `Formatter` ``` @@ -2509,10 +2516,10 @@ Categories: `Formatter` ``` # prettierd -> Prettier, as a daemon, for ludicrous formatting speed +> Prettier, as a daemon, for ludicrous formatting speed. Homepage: [https://github.com/fsouza/prettierd](https://github.com/fsouza/prettierd) -Languages: `JavaScript` `TypeScript` `Flow` `JSX` `JSON` `CSS` `SCSS` `LESS` `HTML` `Vue` `Angular` `GraphQL` `Markdown` `YAML` +Languages: `Angular` `CSS` `Flow` `GraphQL` `HTML` `JSON` `JSX` `JavaScript` `LESS` `Markdown` `SCSS` `TypeScript` `Vue` `YAML` Categories: `Formatter` ``` @@ -2520,8 +2527,9 @@ Categories: `Formatter` ``` # prisma-language-server -> Any editor that is compatible with the Language Server Protocol can create clients that can use the features -provided by this language server. +> Any editor that is compatible with the Language Server Protocol can create clients that can use the features provided +by this language server. + Homepage: [https://github.com/prisma/language-tools](https://github.com/prisma/language-tools) Languages: `Prisma` @@ -2532,8 +2540,9 @@ Categories: `LSP` ``` # proselint -> proselint is a linter for English prose. It places the world's greatest writers and editors by your side, where -they whisper suggestions on how to improve your prose. +> proselint is a linter for English prose. It places the world's greatest writers and editors by your side, where they +whisper suggestions on how to improve your prose. + Homepage: [https://github.com/amperser/proselint](https://github.com/amperser/proselint) Languages: `Text` `Markdown` diff --git a/lua/mason-registry/index/init.lua b/lua/mason-registry/index/init.lua index 69eb195a..2ebd1010 100644 --- a/lua/mason-registry/index/init.lua +++ b/lua/mason-registry/index/init.lua @@ -3,35 +3,6 @@ return { ["haskell-language-server"] = "mason-registry.index.haskell-language-server", ["julia-lsp"] = "mason-registry.index.julia-lsp", - neocmakelsp = "mason-registry.index.neocmakelsp", - netcoredbg = "mason-registry.index.netcoredbg", - ["nginx-language-server"] = "mason-registry.index.nginx-language-server", - ["nickel-lang-lsp"] = "mason-registry.index.nickel-lang-lsp", - ["nil"] = "mason-registry.index.nil", - nimlsp = "mason-registry.index.nimlsp", - ["node-debug2-adapter"] = "mason-registry.index.node-debug2-adapter", - nxls = "mason-registry.index.nxls", - ["ocaml-lsp"] = "mason-registry.index.ocaml-lsp", - ocamlformat = "mason-registry.index.ocamlformat", - omnisharp = "mason-registry.index.omnisharp", - ["omnisharp-mono"] = "mason-registry.index.omnisharp-mono", - ["opencl-language-server"] = "mason-registry.index.opencl-language-server", - ["openedge-language-server"] = "mason-registry.index.openedge-language-server", - ["openscad-lsp"] = "mason-registry.index.openscad-lsp", - perlnavigator = "mason-registry.index.perlnavigator", - ["php-cs-fixer"] = "mason-registry.index.php-cs-fixer", - ["php-debug-adapter"] = "mason-registry.index.php-debug-adapter", - phpactor = "mason-registry.index.phpactor", - phpcbf = "mason-registry.index.phpcbf", - phpcs = "mason-registry.index.phpcs", - phpmd = "mason-registry.index.phpmd", - phpstan = "mason-registry.index.phpstan", - pint = "mason-registry.index.pint", - ["powershell-editor-services"] = "mason-registry.index.powershell-editor-services", - prettier = "mason-registry.index.prettier", - prettierd = "mason-registry.index.prettierd", - ["prisma-language-server"] = "mason-registry.index.prisma-language-server", - proselint = "mason-registry.index.proselint", ["prosemd-lsp"] = "mason-registry.index.prosemd-lsp", protolint = "mason-registry.index.protolint", psalm = "mason-registry.index.psalm", diff --git a/lua/mason-registry/index/neocmakelsp/init.lua b/lua/mason-registry/index/neocmakelsp/init.lua deleted file mode 100644 index 2fe76e44..00000000 --- a/lua/mason-registry/index/neocmakelsp/init.lua +++ /dev/null @@ -1,11 +0,0 @@ -local Pkg = require "mason-core.package" -local cargo = require "mason-core.managers.cargo" - -return Pkg.new { - name = "neocmakelsp", - desc = [[CMake LSP implementation based on Tower and Tree-sitter]], - homepage = "https://github.com/Decodetalkers/neocmakelsp", - languages = { Pkg.Lang.CMake }, - categories = { Pkg.Cat.LSP }, - install = cargo.crate("neocmakelsp", { bin = { "neocmakelsp" } }), -} diff --git a/lua/mason-registry/index/netcoredbg/init.lua b/lua/mason-registry/index/netcoredbg/init.lua deleted file mode 100644 index 7127cfdb..00000000 --- a/lua/mason-registry/index/netcoredbg/init.lua +++ /dev/null @@ -1,42 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local path = require "mason-core.path" -local platform = require "mason-core.platform" - -return Pkg.new { - name = "netcoredbg", - desc = [[NetCoreDbg is a managed code debugger with MI interface for CoreCLR.]], - homepage = "https://github.com/Samsung/netcoredbg", - languages = { Pkg.Lang[".NET"], Pkg.Lang["C#"], Pkg.Lang["F#"] }, - categories = { Pkg.Cat.DAP }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - platform.when { - unix = function() - github - .untargz_release_file({ - repo = "Samsung/netcoredbg", - asset_file = _.coalesce( - _.when(platform.is.mac, "netcoredbg-osx-amd64.tar.gz"), - _.when(platform.is.linux_x64, "netcoredbg-linux-amd64.tar.gz"), - _.when(platform.is.linux_arm64, "netcoredbg-linux-arm64.tar.gz") - ), - }) - .with_receipt() - ctx.fs:rename("netcoredbg", "build") - ctx:link_bin("netcoredbg", ctx:write_exec_wrapper("netcoredbg", path.concat { "build", "netcoredbg" })) - end, - win = function() - github - .unzip_release_file({ - repo = "Samsung/netcoredbg", - asset_file = _.when(platform.is.win_x64, "netcoredbg-win64.zip"), - }) - .with_receipt() - ctx:link_bin("netcoredbg", path.concat { "netcoredbg", "netcoredbg.exe" }) - end, - } - end, -} diff --git a/lua/mason-registry/index/nginx-language-server/init.lua b/lua/mason-registry/index/nginx-language-server/init.lua deleted file mode 100644 index 88512cdc..00000000 --- a/lua/mason-registry/index/nginx-language-server/init.lua +++ /dev/null @@ -1,11 +0,0 @@ -local Pkg = require "mason-core.package" -local pip3 = require "mason-core.managers.pip3" - -return Pkg.new { - name = "nginx-language-server", - desc = [[A language server for nginx configuration files.]], - homepage = "https://github.com/pappasam/nginx-language-server", - languages = { Pkg.Lang.Nginx }, - categories = { Pkg.Cat.LSP }, - install = pip3.packages { "nginx-language-server", bin = { "nginx-language-server" } }, -} diff --git a/lua/mason-registry/index/nickel-lang-lsp/init.lua b/lua/mason-registry/index/nickel-lang-lsp/init.lua deleted file mode 100644 index 06310dbe..00000000 --- a/lua/mason-registry/index/nickel-lang-lsp/init.lua +++ /dev/null @@ -1,17 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local cargo = require "mason-core.managers.cargo" - -return Pkg.new { - name = "nickel-lang-lsp", - desc = _.dedent [[ - The Nickel Language Server (NLS) is a language server for the Nickel programming language. NLS offers error - messages, type hints, and auto-completion right in your favorite LSP-enabled editor. - ]], - homepage = "https://nickel-lang.org/", - languages = { Pkg.Lang.Nickel }, - categories = { Pkg.Cat.LSP }, - install = cargo.crate("nickel-lang-lsp", { - bin = { "nls" }, - }), -} diff --git a/lua/mason-registry/index/nil/init.lua b/lua/mason-registry/index/nil/init.lua deleted file mode 100644 index 708022a4..00000000 --- a/lua/mason-registry/index/nil/init.lua +++ /dev/null @@ -1,17 +0,0 @@ -local Pkg = require "mason-core.package" -local cargo = require "mason-core.managers.cargo" - -return Pkg.new { - name = "nil", - desc = [[Language Server for Nix]], - homepage = "https://github.com/oxalica/nil", - languages = { Pkg.Lang.Nix }, - categories = { Pkg.Cat.LSP }, - install = cargo.crate("nil", { - git = { - url = "https://github.com/oxalica/nil", - tag = true, - }, - bin = { "nil" }, - }), -} diff --git a/lua/mason-registry/index/nimlsp/init.lua b/lua/mason-registry/index/nimlsp/init.lua deleted file mode 100644 index 7331fa2a..00000000 --- a/lua/mason-registry/index/nimlsp/init.lua +++ /dev/null @@ -1,22 +0,0 @@ -local Optional = require "mason-core.optional" -local Pkg = require "mason-core.package" -local git = require "mason-core.managers.git" -local github = require "mason-core.managers.github" -local platform = require "mason-core.platform" - -return Pkg.new { - name = "nimlsp", - desc = [[Language Server Protocol implementation for Nim]], - homepage = "https://github.com/PMunch/nimlsp", - languages = { Pkg.Lang.Nim }, - categories = { Pkg.Cat.LSP }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - local source = github.tag { repo = "PMunch/nimlsp" } - source.with_receipt() - git.clone { "https://github.com/PMunch/nimlsp", version = Optional.of(source.tag) } - ctx.spawn.nimble { "build", "-y", "--localdeps" } - ctx:link_bin("nimlsp", platform.is.win and "nimlsp.exe" or "nimlsp") - end, -} diff --git a/lua/mason-registry/index/node-debug2-adapter/init.lua b/lua/mason-registry/index/node-debug2-adapter/init.lua deleted file mode 100644 index de4d0aba..00000000 --- a/lua/mason-registry/index/node-debug2-adapter/init.lua +++ /dev/null @@ -1,36 +0,0 @@ -local Optional = require "mason-core.optional" -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local git = require "mason-core.managers.git" -local github = require "mason-core.managers.github" -local path = require "mason-core.path" -local platform = require "mason-core.platform" - -return Pkg.new { - name = "node-debug2-adapter", - desc = [[A debug adapter that supports debugging Node via the Chrome Debugging Protocol. No longer maintained.]], - homepage = "https://github.com/microsoft/vscode-node-debug2", - languages = { Pkg.Lang.JavaScript, Pkg.Lang.TypeScript }, - categories = { Pkg.Cat.DAP }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - local source = github.tag { repo = "microsoft/vscode-node-debug2" } - source.with_receipt() - git.clone { "https://github.com/microsoft/vscode-node-debug2", version = Optional.of(source.tag) } - ctx.spawn.npm { "install" } - local node_env = platform - .get_node_version() - :map(_.cond { - { _.prop_satisfies(_.gte(18), "major"), _.always { NODE_OPTIONS = "--no-experimental-fetch" } }, - { _.T, _.always {} }, - }) - :get_or_else {} - ctx.spawn.npm { "run", "build", env = node_env } - ctx.spawn.npm { "install", "--production" } - ctx:link_bin( - "node-debug2-adapter", - ctx:write_node_exec_wrapper("node-debug2-adapter", path.concat { "out", "src", "nodeDebug.js" }) - ) - end, -} diff --git a/lua/mason-registry/index/nxls/init.lua b/lua/mason-registry/index/nxls/init.lua deleted file mode 100644 index fb955b5e..00000000 --- a/lua/mason-registry/index/nxls/init.lua +++ /dev/null @@ -1,13 +0,0 @@ -local Pkg = require "mason-core.package" -local npm = require "mason-core.managers.npm" - -return Pkg.new { - name = "nxls", - desc = [[A language server that provides code completion and more for Nx workspaces.]], - homepage = "https://github.com/nrwl/nx-console/tree/master/apps/nxls", - languages = { - Pkg.Lang.JSON, - }, - categories = { Pkg.Cat.LSP }, - install = npm.packages { "nxls", bin = { "nxls" } }, -} diff --git a/lua/mason-registry/index/ocaml-lsp/init.lua b/lua/mason-registry/index/ocaml-lsp/init.lua deleted file mode 100644 index b1d02807..00000000 --- a/lua/mason-registry/index/ocaml-lsp/init.lua +++ /dev/null @@ -1,11 +0,0 @@ -local Pkg = require "mason-core.package" -local opam = require "mason-core.managers.opam" - -return Pkg.new { - name = "ocaml-lsp", - desc = [[OCaml Language Server Protocol implementation]], - homepage = "https://github.com/ocaml/ocaml-lsp", - languages = { Pkg.Lang.OCaml }, - categories = { Pkg.Cat.LSP }, - install = opam.packages { "ocaml-lsp-server", bin = { "ocamllsp" } }, -} diff --git a/lua/mason-registry/index/ocamlformat/init.lua b/lua/mason-registry/index/ocamlformat/init.lua deleted file mode 100644 index a92b4e23..00000000 --- a/lua/mason-registry/index/ocamlformat/init.lua +++ /dev/null @@ -1,15 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local opam = require "mason-core.managers.opam" - -return Pkg.new { - name = "ocamlformat", - desc = _.dedent [[ - ocamlformat is a tool for formatting OCaml code. It automatically adjusts the layout of your code to follow the - recommended style guidelines, making it easier to read and understand. - ]], - homepage = "https://github.com/ocaml-ppx/ocamlformat", - languages = { Pkg.Lang.OCaml }, - categories = { Pkg.Cat.Formatter }, - install = opam.packages { "ocamlformat", bin = { "ocamlformat" } }, -} diff --git a/lua/mason-registry/index/omnisharp-mono/init.lua b/lua/mason-registry/index/omnisharp-mono/init.lua deleted file mode 100644 index b3cfb3b7..00000000 --- a/lua/mason-registry/index/omnisharp-mono/init.lua +++ /dev/null @@ -1,48 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local platform = require "mason-core.platform" - -local coalesce, when = _.coalesce, _.when - -return Pkg.new { - name = "omnisharp-mono", - desc = _.dedent [[ - OmniSharp language server based on Roslyn workspaces. This version of Omnisharp requires Mono to be installed on - Linux & macOS. - ]], - homepage = "https://github.com/OmniSharp/omnisharp-roslyn", - languages = { Pkg.Lang["C#"] }, - categories = { Pkg.Cat.LSP }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - platform.when { - unix = function() - github - .untargz_release_file({ - repo = "OmniSharp/omnisharp-roslyn", - asset_file = coalesce( - when(platform.is.mac, "omnisharp-osx.tar.gz"), - when(platform.is.linux_x64, "omnisharp-linux-x64.tar.gz"), - when(platform.is.linux_x86, "omnisharp-linux-x86.tar.gz") - ), - }) - .with_receipt() - ctx:link_bin("omnisharp-mono", ctx:write_exec_wrapper("omnisharp-mono", "run")) - end, - win = function() - github - .unzip_release_file({ - repo = "OmniSharp/omnisharp-roslyn", - asset_file = coalesce( - when(platform.is.win_x64, "omnisharp-win-x64.zip"), - when(platform.is.win_x86, "omnisharp-win-x86.zip") - ), - }) - .with_receipt() - ctx:link_bin("omnisharp-mono", "OmniSharp.exe") - end, - } - end, -} diff --git a/lua/mason-registry/index/omnisharp/init.lua b/lua/mason-registry/index/omnisharp/init.lua deleted file mode 100644 index 57292a8f..00000000 --- a/lua/mason-registry/index/omnisharp/init.lua +++ /dev/null @@ -1,46 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local path = require "mason-core.path" -local platform = require "mason-core.platform" - -local coalesce, when = _.coalesce, _.when - -return Pkg.new { - name = "omnisharp", - desc = _.dedent [[ - OmniSharp language server based on Roslyn workspaces. This version of Omnisharp requires dotnet (.NET 6.0) to be - installed. - ]], - homepage = "https://github.com/OmniSharp/omnisharp-roslyn", - languages = { Pkg.Lang["C#"] }, - categories = { Pkg.Cat.LSP }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - github - .unzip_release_file({ - repo = "OmniSharp/omnisharp-roslyn", - asset_file = coalesce( - when(platform.is.mac_x64, "omnisharp-osx-x64-net6.0.zip"), - when(platform.is.mac_arm64, "omnisharp-osx-arm64-net6.0.zip"), - when(platform.is.linux_x64, "omnisharp-linux-x64-net6.0.zip"), - when(platform.is.linux_arm64, "omnisharp-linux-arm64-net6.0.zip"), - when(platform.is.win_x64, "omnisharp-win-x64-net6.0.zip"), - when(platform.is.win_arm64, "omnisharp-win-arm64-net6.0.zip") - ), - }) - .with_receipt() - - ctx:link_bin( - "omnisharp", - ctx:write_shell_exec_wrapper( - "omnisharp", - ("dotnet %q"):format(path.concat { - ctx.package:get_install_path(), - "OmniSharp.dll", - }) - ) - ) - end, -} diff --git a/lua/mason-registry/index/opencl-language-server/init.lua b/lua/mason-registry/index/opencl-language-server/init.lua deleted file mode 100644 index 4c631f91..00000000 --- a/lua/mason-registry/index/opencl-language-server/init.lua +++ /dev/null @@ -1,44 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local platform = require "mason-core.platform" - -local coalesce, when = _.coalesce, _.when - -return Pkg.new { - name = "opencl-language-server", - desc = [[Provides an OpenCL kernel diagnostics]], - homepage = "https://github.com/Galarius/opencl-language-server", - languages = { Pkg.Lang.OpenCL }, - categories = { Pkg.Cat.LSP }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - platform.when { - unix = function() - local asset_file = coalesce( - when(platform.is.mac, "opencl-language-server-darwin-x86_64.tar.gz"), - when(platform.is.linux_x64, "opencl-language-server-linux-x86_64.tar.gz") - ) - github - .untargz_release_file({ - repo = "Galarius/opencl-language-server", - asset_file = asset_file, - }) - .with_receipt() - end, - win = function() - github - .unzip_release_file({ - repo = "Galarius/opencl-language-server", - asset_file = "opencl-language-server-win32-x86_64.zip", - }) - .with_receipt() - end, - } - ctx:link_bin( - "opencl-language-server", - platform.is.win and "opencl-language-server.exe" or "opencl-language-server" - ) - end, -} diff --git a/lua/mason-registry/index/openedge-language-server/init.lua b/lua/mason-registry/index/openedge-language-server/init.lua deleted file mode 100644 index b1b60b23..00000000 --- a/lua/mason-registry/index/openedge-language-server/init.lua +++ /dev/null @@ -1,20 +0,0 @@ -local Pkg = require "mason-core.package" -local github = require "mason-core.managers.github" - -return Pkg.new { - name = "openedge-language-server", - desc = [[OpenEdge Language Server]], - homepage = "https://github.com/vscode-abl/vscode-abl", - languages = { Pkg.Lang.Progress }, - categories = { Pkg.Cat.LSP }, - ---@async - install = function() - github - .download_release_file({ - repo = "vscode-abl/vscode-abl", - out_file = "abl-lsp.jar", - asset_file = "abl-lsp.jar", - }) - .with_receipt() - end, -} diff --git a/lua/mason-registry/index/openscad-lsp/init.lua b/lua/mason-registry/index/openscad-lsp/init.lua deleted file mode 100644 index 2caf582d..00000000 --- a/lua/mason-registry/index/openscad-lsp/init.lua +++ /dev/null @@ -1,13 +0,0 @@ -local Pkg = require "mason-core.package" -local cargo = require "mason-core.managers.cargo" - -return Pkg.new { - name = "openscad-lsp", - desc = [[Language Server Protocol implementation for OpenSCAD, written in Rust.]], - homepage = "https://github.com/Leathong/openscad-LSP", - languages = { Pkg.Lang.OpenSCAD }, - categories = { Pkg.Cat.LSP }, - install = cargo.crate("openscad-lsp", { - bin = { "openscad-lsp" }, - }), -} diff --git a/lua/mason-registry/index/perlnavigator/init.lua b/lua/mason-registry/index/perlnavigator/init.lua deleted file mode 100644 index 654ecb94..00000000 --- a/lua/mason-registry/index/perlnavigator/init.lua +++ /dev/null @@ -1,23 +0,0 @@ -local Pkg = require "mason-core.package" -local npm = require "mason-core.managers.npm" -local path = require "mason-core.path" - -return Pkg.new { - name = "perlnavigator", - desc = [[Perl Language Server that includes perl critic and code navigation]], - homepage = "https://github.com/bscan/PerlNavigator", - languages = { Pkg.Lang.Perl }, - categories = { Pkg.Cat.LSP }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - npm.packages { "perlnavigator-server" }() - ctx:link_bin( - "perlnavigator", - ctx:write_node_exec_wrapper( - "perlnavigator", - path.concat { "node_modules", "perlnavigator-server", "out", "server.js" } - ) - ) - end, -} diff --git a/lua/mason-registry/index/php-cs-fixer/init.lua b/lua/mason-registry/index/php-cs-fixer/init.lua deleted file mode 100644 index b70741f7..00000000 --- a/lua/mason-registry/index/php-cs-fixer/init.lua +++ /dev/null @@ -1,37 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local platform = require "mason-core.platform" -local std = require "mason-core.managers.std" - -return Pkg.new { - name = "php-cs-fixer", - desc = _.dedent [[ - The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards; whether you want to - follow PHP coding standards as defined in the PSR-1, PSR-2, etc., or other community driven ones like the - Symfony one. You can also define your (team's) style through configuration.') - ]], - homepage = "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer", - languages = { Pkg.Lang.PHP }, - categories = { Pkg.Cat.Formatter }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - github - .download_release_file({ - repo = "PHP-CS-Fixer/PHP-CS-Fixer", - asset_file = "php-cs-fixer.phar", - out_file = platform.is.win and "php-cs-fixer.phar" or "php-cs-fixer", - }) - .with_receipt() - platform.when { - unix = function() - std.chmod("+x", { "php-cs-fixer" }) - ctx:link_bin("php-cs-fixer", "php-cs-fixer") - end, - win = function() - ctx:link_bin("php-cs-fixer", ctx:write_php_exec_wrapper("php-cs-fixer", "php-cs-fixer.phar")) - end, - } - end, -} diff --git a/lua/mason-registry/index/php-debug-adapter/init.lua b/lua/mason-registry/index/php-debug-adapter/init.lua deleted file mode 100644 index 7aafd17d..00000000 --- a/lua/mason-registry/index/php-debug-adapter/init.lua +++ /dev/null @@ -1,27 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local path = require "mason-core.path" - -return Pkg.new { - name = "php-debug-adapter", - desc = [[PHP Debug Adapter πβ]], - homepage = "https://github.com/xdebug/vscode-php-debug", - languages = { Pkg.Lang.PHP }, - categories = { Pkg.Cat.DAP }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - github - .unzip_release_file({ - repo = "xdebug/vscode-php-debug", - asset_file = _.compose(_.format "php-debug-%s.vsix", _.gsub("^v", "")), - }) - .with_receipt() - ctx.fs:rmrf(path.concat { "extension", "images" }) - ctx:link_bin( - "php-debug-adapter", - ctx:write_node_exec_wrapper("php-debug-adapter", path.concat { "extension", "out", "phpDebug.js" }) - ) - end, -} diff --git a/lua/mason-registry/index/phpactor/init.lua b/lua/mason-registry/index/phpactor/init.lua deleted file mode 100644 index c5f19e06..00000000 --- a/lua/mason-registry/index/phpactor/init.lua +++ /dev/null @@ -1,29 +0,0 @@ -local Optional = require "mason-core.optional" -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local composer = require "mason-core.managers.composer" -local git = require "mason-core.managers.git" -local github = require "mason-core.managers.github" -local path = require "mason-core.path" -local platform = require "mason-core.platform" - -return Pkg.new { - name = "phpactor", - desc = _.dedent [[ - Phpactor is an intelligent Completion and Refactoring tool for PHP which is available over itβs own RPC protocol - and as a Language Server. - ]], - homepage = "https://phpactor.readthedocs.io/en/master/", - languages = { Pkg.Lang.PHP }, - categories = { Pkg.Cat.LSP }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - assert(platform.is.unix, "phpactor only supports UNIX environments.") - local source = github.tag { repo = "phpactor/phpactor" } - source.with_receipt() - git.clone { "https://github.com/phpactor/phpactor", version = Optional.of(source.tag) } - composer.install() - ctx:link_bin("phpactor", path.concat { "bin", "phpactor" }) - end, -} diff --git a/lua/mason-registry/index/phpcbf/init.lua b/lua/mason-registry/index/phpcbf/init.lua deleted file mode 100644 index 0543a83a..00000000 --- a/lua/mason-registry/index/phpcbf/init.lua +++ /dev/null @@ -1,33 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local platform = require "mason-core.platform" -local std = require "mason-core.managers.std" - -return Pkg.new { - name = "phpcbf", - desc = [[phpcbf automatically corrects coding standard violations that would be detected by phpcs.]], - homepage = "https://github.com/squizlabs/PHP_CodeSniffer", - languages = { Pkg.Lang.PHP }, - categories = { Pkg.Cat.Formatter }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - github - .download_release_file({ - repo = "squizlabs/PHP_CodeSniffer", - asset_file = "phpcbf.phar", - out_file = platform.is.win and "phpcbf.phar" or "phpcbf", - }) - .with_receipt() - platform.when { - unix = function() - std.chmod("+x", { "phpcbf" }) - ctx:link_bin("phpcbf", "phpcbf") - end, - win = function() - ctx:link_bin("phpcbf", ctx:write_php_exec_wrapper("phpcbf", "phpcbf.phar")) - end, - } - end, -} diff --git a/lua/mason-registry/index/phpcs/init.lua b/lua/mason-registry/index/phpcs/init.lua deleted file mode 100644 index 38409872..00000000 --- a/lua/mason-registry/index/phpcs/init.lua +++ /dev/null @@ -1,33 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local platform = require "mason-core.platform" -local std = require "mason-core.managers.std" - -return Pkg.new { - name = "phpcs", - desc = [[phpcs tokenizes PHP, JavaScript and CSS files to detect violations of a defined standard.]], - homepage = "https://github.com/squizlabs/PHP_CodeSniffer", - languages = { Pkg.Lang.PHP }, - categories = { Pkg.Cat.Linter }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - github - .download_release_file({ - repo = "squizlabs/PHP_CodeSniffer", - asset_file = "phpcs.phar", - out_file = platform.is.win and "phpcs.phar" or "phpcs", - }) - .with_receipt() - platform.when { - unix = function() - std.chmod("+x", { "phpcs" }) - ctx:link_bin("phpcs", "phpcs") - end, - win = function() - ctx:link_bin("phpcs", ctx:write_php_exec_wrapper("phpcs", "phpcs.phar")) - end, - } - end, -} diff --git a/lua/mason-registry/index/phpmd/init.lua b/lua/mason-registry/index/phpmd/init.lua deleted file mode 100644 index ea0cd371..00000000 --- a/lua/mason-registry/index/phpmd/init.lua +++ /dev/null @@ -1,36 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local platform = require "mason-core.platform" -local std = require "mason-core.managers.std" - -return Pkg.new { - name = "phpmd", - desc = _.dedent [[ - PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. - PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend. - ]], - homepage = "https://github.com/phpmd/phpmd", - languages = { Pkg.Lang.PHP }, - categories = { Pkg.Cat.Linter }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - github - .download_release_file({ - repo = "phpmd/phpmd", - asset_file = "phpmd.phar", - out_file = platform.is.win and "phpmd.phar" or "phpmd", - }) - .with_receipt() - platform.when { - unix = function() - std.chmod("+x", { "phpmd" }) - ctx:link_bin("phpmd", "phpmd") - end, - win = function() - ctx:link_bin("phpmd", ctx:write_php_exec_wrapper("phpmd", "phpmd.phar")) - end, - } - end, -} diff --git a/lua/mason-registry/index/phpstan/init.lua b/lua/mason-registry/index/phpstan/init.lua deleted file mode 100644 index 60395e75..00000000 --- a/lua/mason-registry/index/phpstan/init.lua +++ /dev/null @@ -1,36 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local github = require "mason-core.managers.github" -local path = require "mason-core.path" -local platform = require "mason-core.platform" -local std = require "mason-core.managers.std" - -return Pkg.new { - name = "phpstan", - desc = _.dedent [[ - PHP Static Analysis Tool - discover bugs in your code without running it! - ]], - homepage = "https://github.com/phpstan/phpstan", - languages = { Pkg.Lang.PHP }, - categories = { Pkg.Cat.Linter }, - ---@async - ---@param ctx InstallContext - install = function(ctx) - github - .download_release_file({ - repo = "phpstan/phpstan", - asset_file = "phpstan.phar", - out_file = platform.is.win and "phpstan.phar" or "phpstan", - }) - .with_receipt() - platform.when { - unix = function() - std.chmod("+x", { "phpstan" }) - ctx:link_bin("phpstan", "phpstan") - end, - win = function() - ctx:link_bin("phpstan", ctx:write_php_exec_wrapper("phpstan", "phpstan.phar")) - end, - } - end, -} diff --git a/lua/mason-registry/index/pint/init.lua b/lua/mason-registry/index/pint/init.lua deleted file mode 100644 index 559434d5..00000000 --- a/lua/mason-registry/index/pint/init.lua +++ /dev/null @@ -1,16 +0,0 @@ -local Pkg = require "mason-core.package" -local composer = require "mason-core.managers.composer" - -return Pkg.new { - name = "pint", - desc = [[Laravel Pint is an opinionated PHP code style fixer for minimalists.]], - homepage = "https://laravel.com/docs/9.x/pint", - languages = { Pkg.Lang.PHP }, - categories = { Pkg.Cat.Formatter }, - install = composer.packages { - "laravel/pint", - bin = { - "pint", - }, - }, -} diff --git a/lua/mason-registry/index/powershell-editor-services/init.lua b/lua/mason-registry/index/powershell-editor-services/init.lua deleted file mode 100644 index 0299760d..00000000 --- a/lua/mason-registry/index/powershell-editor-services/init.lua +++ /dev/null @@ -1,21 +0,0 @@ -local Pkg = require "mason-core.package" -local github = require "mason-core.managers.github" -local std = require "mason-core.managers.std" - -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, -} diff --git a/lua/mason-registry/index/prettier/init.lua b/lua/mason-registry/index/prettier/init.lua deleted file mode 100644 index 04f0bd0f..00000000 --- a/lua/mason-registry/index/prettier/init.lua +++ /dev/null @@ -1,26 +0,0 @@ -local Pkg = require "mason-core.package" -local npm = require "mason-core.managers.npm" - -return Pkg.new { - name = "prettier", - desc = [[Prettier is an opinionated code formatter]], - homepage = "https://prettier.io", - languages = { - Pkg.Lang.JavaScript, - Pkg.Lang.TypeScript, - Pkg.Lang.Flow, - Pkg.Lang.JSX, - Pkg.Lang.JSON, - Pkg.Lang.CSS, - Pkg.Lang.SCSS, - Pkg.Lang.LESS, - Pkg.Lang.HTML, - Pkg.Lang.Vue, - Pkg.Lang.Angular, - Pkg.Lang.GraphQL, - Pkg.Lang.Markdown, - Pkg.Lang.YAML, - }, - categories = { Pkg.Cat.Formatter }, - install = npm.packages { "prettier", bin = { "prettier" } }, -} diff --git a/lua/mason-registry/index/prettierd/init.lua b/lua/mason-registry/index/prettierd/init.lua deleted file mode 100644 index 34a2e0c4..00000000 --- a/lua/mason-registry/index/prettierd/init.lua +++ /dev/null @@ -1,26 +0,0 @@ -local Pkg = require "mason-core.package" -local npm = require "mason-core.managers.npm" - -return Pkg.new { - name = "prettierd", - desc = [[Prettier, as a daemon, for ludicrous formatting speed]], - homepage = "https://github.com/fsouza/prettierd", - languages = { - Pkg.Lang.JavaScript, - Pkg.Lang.TypeScript, - Pkg.Lang.Flow, - Pkg.Lang.JSX, - Pkg.Lang.JSON, - Pkg.Lang.CSS, - Pkg.Lang.SCSS, - Pkg.Lang.LESS, - Pkg.Lang.HTML, - Pkg.Lang.Vue, - Pkg.Lang.Angular, - Pkg.Lang.GraphQL, - Pkg.Lang.Markdown, - Pkg.Lang.YAML, - }, - categories = { Pkg.Cat.Formatter }, - install = npm.packages { "@fsouza/prettierd", bin = { "prettierd" } }, -} diff --git a/lua/mason-registry/index/prisma-language-server/init.lua b/lua/mason-registry/index/prisma-language-server/init.lua deleted file mode 100644 index 5b82c390..00000000 --- a/lua/mason-registry/index/prisma-language-server/init.lua +++ /dev/null @@ -1,15 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local npm = require "mason-core.managers.npm" - -return Pkg.new { - name = "prisma-language-server", - desc = _.dedent [[ - Any editor that is compatible with the Language Server Protocol can create clients that can use the features - provided by this language server. - ]], - homepage = "https://github.com/prisma/language-tools", - languages = { Pkg.Lang.Prisma }, - categories = { Pkg.Cat.LSP }, - install = npm.packages { "@prisma/language-server", bin = { "prisma-language-server" } }, -} diff --git a/lua/mason-registry/index/proselint/init.lua b/lua/mason-registry/index/proselint/init.lua deleted file mode 100644 index ac8bf67b..00000000 --- a/lua/mason-registry/index/proselint/init.lua +++ /dev/null @@ -1,15 +0,0 @@ -local Pkg = require "mason-core.package" -local _ = require "mason-core.functional" -local pip3 = require "mason-core.managers.pip3" - -return Pkg.new { - name = "proselint", - desc = _.dedent [[ - proselint is a linter for English prose. It places the world's greatest writers and editors by your side, where - they whisper suggestions on how to improve your prose. - ]], - homepage = "https://github.com/amperser/proselint", - languages = { Pkg.Lang.Text, Pkg.Lang.Markdown }, - categories = { Pkg.Cat.Linter }, - install = pip3.packages { "proselint", bin = { "proselint" } }, -} diff --git a/lua/mason/mappings/language.lua b/lua/mason/mappings/language.lua index 4172bf08..0121d0b7 100644 --- a/lua/mason/mappings/language.lua +++ b/lua/mason/mappings/language.lua @@ -95,6 +95,7 @@ return { onescript = { "bsl-language-server" }, openapi = { "vacuum" }, opencl = { "opencl-language-server" }, + openedge = { "openedge-language-server" }, openfoam = { "foam-language-server" }, openscad = { "openscad-lsp" }, perl = { "perlnavigator" }, |
