For those using minpac and having the no field package.preload['colorizer'] problem.
I used to use Vim-Plug, and I suspect that minpac has different order of loading plugins.
So, if you put lua require'colorizer'.setup() in your init.vim, it's gonna throw an error, because plugins are not loaded yet, I guess. Thus, it has to be placed in the after directory:
mkdir -p ~/.config/nvim/after/plugin && echo "lua require'colorizer'.setup()" >> ~/.config/nvim/after/plugin/colorizer.vim.
Works for me :p
For those using minpac and having the
no field package.preload['colorizer']
problem. I used to use Vim-Plug, and I suspect that minpac has different order of loading plugins. So, if you putlua require'colorizer'.setup()
in your init.vim, it's gonna throw an error, because plugins are not loaded yet, I guess. Thus, it has to be placed in theafter
directory:mkdir -p ~/.config/nvim/after/plugin && echo "lua require'colorizer'.setup()" >> ~/.config/nvim/after/plugin/colorizer.vim
. Works for me :p