Skip to content

pepe/janet.kak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •