diff options
Diffstat (limited to 'lua/mason-registry/kotlin-debug-adapter/init.lua')
| -rw-r--r-- | lua/mason-registry/kotlin-debug-adapter/init.lua | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/lua/mason-registry/kotlin-debug-adapter/init.lua b/lua/mason-registry/kotlin-debug-adapter/init.lua new file mode 100644 index 00000000..2e7aa17c --- /dev/null +++ b/lua/mason-registry/kotlin-debug-adapter/init.lua @@ -0,0 +1,30 @@ +local Pkg = require "mason-core.package" +local github = require "mason-core.managers.github" +local platform = require "mason-core.platform" +local path = require "mason-core.path" + +return Pkg.new { + name = "kotlin-debug-adapter", + desc = [[Kotlin/JVM debugging for any editor/IDE using the Debug Adapter Protocol]], + homepage = "https://github.com/fwcd/kotlin-debug-adapter", + languages = { Pkg.Lang.Kotlin }, + categories = { Pkg.Cat.DAP }, + ---@async + ---@param ctx InstallContext + install = function(ctx) + github + .unzip_release_file({ + repo = "fwcd/kotlin-debug-adapter", + asset_file = "adapter.zip", + }) + .with_receipt() + ctx:link_bin( + "kotlin-debug-adapter", + path.concat { + "adapter", + "bin", + platform.is.win and "kotlin-debug-adapter.bat" or "kotlin-debug-adapter", + } + ) + end, +} |
