norcalli / nvim-colorizer.lua

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

Issue with Text Coloring using colorizer in Neovim with LazyVim #102

Open epsilon11101 opened 3 months ago

epsilon11101 commented 3 months ago

Description: Hello, I have configured Neovim with LazyVim and added the colorizer plugin for text coloring, but the text still does not color correctly. Below are my configurations for your review to help resolve this issue.

Configurations:

Screenshot from 2024-05-18 18-31-11

Results Screenshot from 2024-05-18 18-38-50

Operating System: Ubuntu 23.10

Neovim Version: v0.10.0

theoo commented 3 months ago

Try calling ColorizerAttachToBuffer to see if tags are colored. If the function isn't available, then your setup lazy-load all plugins and you should provide and event to lazy so it knows when to load it, something like this:

  {
    "norcalli/nvim-colorizer.lua",
    event = "BufEnter",
    opts = { "*" }
  },

But your issue is probably just in the opts table. Your pattern matcher is in a second dimention {'*'} and should be just a string '*' of you opts table.

harshv5094 commented 2 months ago

Also mini.hipatterns creates conflict in LazyVim with this plugin Disable it by adding this code

{
    "echasnovski/mini.hipatterns",
    event = "BufReadPre",
    enabled = false,
},