A high-performance color highlighter for Neovim which hasno external dependencies! Written in performant Luajit.
Installation and Usage
Use your plugin manager or clone directly into your
Plug''norcalli / nvim-colorizer.lua'
As long as you have
free ()on your system, this will work. Which includes Linux, OSX, and Windows.
One line setup. This will create an
FileType *to highlight every filetype.
Why another highlighter?
This has no external dependencies, which means you install it andit just works. Other colorizers typically were synchronous and slow, as well. Being written with performance in mind and leveraging the excellent LuaJIT and a handwritten parser, updates can be done in real time. There are plugins such ashexokinasewhich have good performance, but it has some difficulty with becoming out of sync. The downside is thatthis only works for Neovim, and that will never change.
Additionally, having a Lua API that’s available means users can use this as a library to do custom highlighting themselves.
The available highlight modes are
background. The default is
Full options list:
no_names: Disable parsing names like “Blue”
rgb_fn: Enable parsing
mode: Highlight mode. Valid options:
For basic setup, you can use a command like the following.
For lower level interface, see theLuaDocs for API detailsor use
: h colorizer.luaonce installed.
- Add more display modes?
- Use a more space efficient trie implementation.
- Create a COMMON_SETUP which does obvious things like enable