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

Colorizer not working #87

Open
aamijasmin opened this issue Aug 4, 2024 · 3 comments
Open

Colorizer not working #87

aamijasmin opened this issue Aug 4, 2024 · 3 comments

Comments

@aamijasmin
Copy link

aamijasmin commented Aug 4, 2024

Aug04::105727

Describe the bug
Colorizer is not working on all the files

To Reproduce
Steps to reproduce the behavior:
Just check with few different files like, .zshrc and any css file

Screenshots
I have attached SS

Desktop (please complete the following information):
Debian
Terminator

Colorizer is working on my .zshrc file but not on css file, why ? any instructions. what am I doing wrong ? Please suggest

even it works on any random text file
Aug04::111207

@siduck siduck transferred this issue from NvChad/NvChad Aug 4, 2024
@siduck
Copy link
Collaborator

siduck commented Aug 4, 2024

@aamijasmin i didnt code this colorizer plugin and looks like a complex mess, so i made a minimal one! within a week that will be made default, the development is going on in clean branch of UI repo

@MusherM
Copy link

MusherM commented Aug 8, 2024

@aamijasmin i didnt code this colorizer plugin and looks like a complex mess, so i made a minimal one! within a week that will be made default, the development is going on in clean branch of UI repo我并未编写这个色彩化插件,它看起来复杂混乱,所以我做了一个极简版的!预计一周内它将成为默认设置,开发工作正在 UI 仓库的干净分支上进行

Thx for your effort, but I found adding this to my /plugins/init.lua could fix some problems.

{
    "NvChad/nvim-colorizer.lua",
    event = "BufEnter",
    config = true,
  },

It uses config=true to override the default setting of NVChad, which can cause:

  1. When opened with sessionManager session autoread, color works.
  2. If a buffer is closed(<leader> + x, maybe hidden) and reopened, the color goes.

@catgoose
Copy link
Owner

@aamijasmin are you still having issues with this? I have made changes in the codebase so this may have been fixed. Let me know if you are still having issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants