Just barebone Janet language mode, copied from the clojure.kak, for Kakoune.
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
.
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
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
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>'