norcalli / nvim-colorizer.lua

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

How to load disabled? #62

Closed adrian5 closed 3 years ago

adrian5 commented 3 years ago

I'd like to only enable the plugin on demand, but I don't know how to disable it by default. I use a regular init.vim.

arsham commented 3 years ago

Try only installing without calling setup. If you are using Packer:

use { 'norcalli/nvim-colorizer.lua' }

Then you can execute :ColorizerToggle to toggle it whenever you want.

Is that what you're after?

adrian5 commented 3 years ago

Yes, that's what I wanted – thank you! I wasn't aware the call to .setup() was optional, and that the commands would be available without it.