pepe / janet.kak

Barebone Janet language plugin for Kakoune editor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

janet.kak

Just barebone Janet language mode, copied from the clojure.kak, for Kakoune.

Installation

With plug.kak (recommended)

Just add this to your kakrc:

plug "pepe/janet.kak"

Then reload Kakoune config or restart Kakoune and run :plug-install.

Formatting

To use auto format on save, you need to install jfmt and update your kakrc like so:

set-option global janet_autoformat true
set-option global janet_formatcmd jfmt

Linting

To use auto lint before save, you need to install jlnt and update your kakrc like so:

set-option global janet_autolint true
set-option global janet_lintcmd jlnt

User Mappings

janet.kak provides a user mode with various mappings to access Janet doc strings, surround forms with delimiters, paste some common snippets, and more. To access this user mode, you need to add a mapping to the default user mode.

map global user -docstring 'Janet mode' J ': enter-user-mode janet<ret>'

About

Barebone Janet language plugin for Kakoune editor

License:The Unlicense


Languages

Language:KakouneScript 100.0%