Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

rainbow brackets plugin for the Kakoune text editor

License

Notifications You must be signed in to change notification settings

listentolist/kakoune-rainbow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rainbow brackets plugin for Kakoune

This plugin provides rainbow brackets highlighting

Installation

Clone the repository into the autoload directory or if you use plug.kak, just put this into your kakrc:

plug "listentolist/kakoune-rainbow" domain "gitlab.com" config %{
    require-module rainbow
    # suggested mapping
    # map global user r ": rainbow<ret>" -docstring "rainbow brackets"
    # map global user R ": rmhl window/ranges_rainbow_specs<ret>" \
    #     -docstring "remove rainbow highlighter"
}

You need to have GNU Guile and the connect.kak plugin installed.

Commands

  • rainbow

Options

  • rainbow_colors
  • rainbow_opening, default: '(' '[' '{'
  • rainbow_closing, default: ')' ']' '}'
  • rainbow_regex, regex for matching the brackets; default: '(?<!#\\)[{}\[\]()]'
  • regexes that should be excluded:
    • rainbow_string, default: '(?<!#\\)"([^"]|\\")*(?<!\\)"'
    • rainbow_comment_line, default '(?<!#\\);[^\n]*'
    • rainbow_comment_block, default ''
  • options used for creating the range-specs for highlighting
    • rainbow_specs
    • rainbow_selections
    • rainbow_ranges

Usage

Just run rainbow. The default configuration is designed for scheme code. But you can change the options for other filetypes.

About

rainbow brackets plugin for the Kakoune text editor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages