Closed bluz71 closed 4 years ago
Put require 'colorizer.setup()
after plug#end()
Thanks.
I'm using vim's buitin package loader feature and it doesn't work.
packages seems to be loaded after the vimrc. (Which does make sense because other packages need the values set in the vimrc when they are loaded.)
The solution for me is to set nvim-colorizer.lua as an optional package (that needs to be manually loaded) and load it (using packadd
) before calling lua require 'colorizer'.setup()
The solution for me is to set nvim-colorizer.lua as an optional package (that needs to be manually loaded) and load it before calling
lua require 'colorizer'.setup()
Thanks for this I was running into the same issue and this fixed it! @norcalli I am not good with the lua stuff in neovim - is there a way to lua require that would also look into the &packpath?
Hello,
I have an
~/.config/nvim/init.vim
with the following content:I do that since I want to share
~/.vimrc
between Vim and Neovim.In
~/.vimrc
I have:With that configuation, Neovim is failing to start with the following error:
Ideally it should try and lookup
/Users/bluz71/.vim/plugged/nvim-colorizer.lua/lua/colorizer.lua
.The
&rtp
does contain the path component/Users/bluz71/.vim/plugged/nvim-colorizer.lua/
.Is there something you should be doing at your end to extend lookup? Or is there something I need to do at my end?
Cheers.