A community-driven vim distribution

Home | About | Documentation | Development | Community | Sponsors

Available Layers » lang#kotlin


This layer adds Kotlin language support to SpaceVim.



To use this configuration layer, update custom configuration file with:

  name = "lang#kotlin"

To enable language server protocol, you need to install:

Layer options

When native support is enabled, the code runner will use kotlinc-native, otherwise it will use kotlinc-jvm.

Key bindings

Inferior REPL process

Start a kotlinc-jvm inferior REPL process with SPC l s i.

Send code to inferior process commands:

Key Bindings Descriptions
SPC l s b send buffer and keep code buffer focused
SPC l s l send line and keep code buffer focused
SPC l s s send selection text and keep code buffer focused

Running current file

To running current file, you can press SPC l r to run current file without loss focus, and the result will be shown in a runner buffer.

Hosted on GitHub, Help improve this page — Theme by mattgraham,