Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
epsilon11101 opened this issue May 19, 2024 · 2 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@epsilon11101
Copy link

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

@epsilon11101 epsilon11101 added the bug Something isn't working label May 19, 2024
@theoo
Copy link

theoo commented May 19, 2024

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
Copy link

harshv5094 commented Jun 7, 2024

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants