Skip to content

Instantly share code, notes, and snippets.

View padulkemid's full-sized avatar
+ -

Fadhil Muhammad padulkemid

+ -
View GitHub Profile
@padulkemid
padulkemid / kotlin_jar.lua
Created September 3, 2026 00:26
kotlin_lsp decompiler
-- this is a minimal gist if you only use `kotlin_lsp` not `kmp` or anything.
-- it can help you if you don't want to install fully fledge kotlin.nvim and just need the lsp and goto definitions.
-- this gist will help you open jar:// / jrt:// uri via kotlin_lsp `decompile`.
-- enabled only after a kotlin buffer is opened (ft kotlin).
-- based on kotlin.nvim decompiler + autocommands.
-- credits to AlexandrosAlexiou and guys in https://github.com/Kotlin/kotlin-lsp/issues/44
-- if you guys need to develop heavily with kotlin I suggest y'all install kotlin.nvim but if you ain't gonna do it
-- this decompiler will help with minimal lsp + gd responses.

Aligning images

left alignment

This is the code you need to align images to the left: