Skip to content

SolitudeSF/colorcol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

colorcol

kakoune plugin, that displays color previews inline/after target string/in gutter.

For now supported formats are #rgb,#rgba, #rrggbb and #rrggbbaa.

Install

Having Nim installed just do nimble install colorcol.

Then in your kakrc add evaluate-commands %sh{ colorcol }.

Now you can use colorcol-enable to activate the plugin and colorcol-refresh/colorcol-refresh-on-save/colorcol-refresh-continuous to recolor buffer manually/on save/as you type.

You can change color display mode with colorcol-mode background/foreground/append/flag.

Recommended setup

evaluate-commands %sh{ colorcol }

hook global WinCreate .* %{
  colorcol-enable
  colorcol-refresh-continuous
}