norcalli / nvim-colorizer.lua

The fastest Neovim colorizer.
Other
2.25k stars 117 forks source link

keep everything under colorizer namespace? #20

Closed wsdjeg closed 4 years ago

wsdjeg commented 4 years ago

hello, thanks for create such plugin. but can you keep everything under colorizer namespace. when using this plugin. I can not load my own nvim module.

justinmk commented 4 years ago

Ah, this happens because lua/nvim.lua is on the runtimepath / luapath. I think putting everything in lua/colorizer/... will fix it, though it means that the imports change to require('colorizer.nvim'), etc.

norcalli commented 4 years ago

Yeah I'm fixing it right now. I'm moving the files to colorizer/ which doesn't conflict with the colorizer.lua plugin and is unlikely to conflict with anything else.

norcalli commented 4 years ago

@wsdjeg try updating and let me know if you run into any more problems.

@justinmk I should do this for all of my plugins and then make a "writing lua plugins for neovim" tutorial/best practices :P

wsdjeg commented 4 years ago

ok thanks

justinmk commented 4 years ago

a "writing lua plugins for neovim" tutorial/best practices :P

could be a patch to if_lua.txt :) There is some treatment in :help lua-require and/or :help lua-intro but it could be expanded.