项目作者: pepe

项目描述 :
Barebone Janet language plugin for Kakoune editor
高级语言: KakouneScript
项目地址: git://github.com/pepe/janet.kak.git
创建时间: 2020-09-30T12:21:19Z
项目社区:https://github.com/pepe/janet.kak

开源协议:The Unlicense

下载


janet.kak

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

Installation

Just add this to your kakrc:

  1. 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:

  1. set-option global janet_autoformat true
  2. set-option global janet_formatcmd jfmt

Linting

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

  1. set-option global janet_autolint true
  2. 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.

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