mirror of
https://github.com/norcalli/nvim-colorizer.lua.git
synced 2026-09-10 07:06:14 -04:00
- Add command documentation and new commands. - Add new settings which have a better naming scheme. - Fix reloading settings and add a command to detach highlighter. - Fix #RGB pattern like for #define where it will highlight the #def part.
10 lines
311 B
VimL
10 lines
311 B
VimL
if exists('g:loaded_colorizer')
|
|
finish
|
|
endif
|
|
|
|
command! ColorizerAttachToBuffer lua require'colorizer'.attach_to_buffer(0)
|
|
command! ColorizerDetachFromBuffer lua require'colorizer'.detach_from_buffer(0)
|
|
command! ColorizerReloadAllBuffers lua require'colorizer'.reload_all_buffers()
|
|
|
|
let g:loaded_colorizer = 1
|