Closed MannyFay closed 1 year ago
It sounds like the setup() function is not running at all, or maybe not early enough.
I started hitting this same bug after switching my neovim config from Packer to Lazy.
For me it was solved by changing this line in lua/plugins/init.lua:
'norcalli/nvim-colorizer.lua'
to this:
{
'norcalli/nvim-colorizer.lua',
config = function()
require("colorizer").setup()
end,
},
I thought that Lazy would run setup() automatically, but apparently it did not.
Would be great if it could support config = true
with Lazy!
Thanks @gongfarmer! This works for me with Packer.
I still need a way to activate it at startup using Lazy
Just add the event "BufRead"
How can I enable the colorizer by default if I open Neovim and attach it automatically to every buffer I open?
I've tried different auto commands in my
nvim-colorizer.lua
but without any results. The Colorizer is working if I attach it manually in command line.