Skip to content

Colors don't look right #16

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

Closed
brimosimo opened this issue Oct 16, 2024 · 6 comments
Closed

Colors don't look right #16

brimosimo opened this issue Oct 16, 2024 · 6 comments

Comments

@brimosimo
Copy link

I have now been trying for hours, I can't get your beautiful colorscheme to work.
Here is what I did, I use NVIM v0.10.2, with wbthomason/packer to manage my plugins. I have the following in my packer.lua:

use {
          'lalitmee/cobalt2.nvim',
          requires = 'tjdevries/colorbuddy.nvim'
  }

Installation worked like a charm. I have this in my lua.init:
require("colorbuddy").colorscheme("cobalt2")

My colorscheme now changes, but it does look awful:
cobalt2 issue screenshot

I'm starting from within iTerm 2 on MacOS, I made sure that no .vimrc or .xvimrc are being loaded in compatibility mode, I made sure with scripts that iTerm can handle truecolors, I tried setting termguicolors = true all without luck. There are no messages being shown when starting vim. Is there any way I can troubleshoot this further? I would really like to use this colorscheme.

@lalitmee
Copy link
Owner

Hey @brimosimo, I have not been using packer from a long time but I would just recommend that you call this line:

            config = function()
                require("colorbuddy").colorscheme("cobalt2")
            end,

with your packer config where you have mentioned the cobalt2.nvim to be installed. For example:

use {
          'lalitmee/cobalt2.nvim',
          requires = 'tjdevries/colorbuddy.nvim'
          config = function()
                -- this needs to be called after the plugins has loaded
                require("colorbuddy").colorscheme("cobalt2")
          end,
  }

Let me know if this fixes it.

@brimosimo
Copy link
Author

I did as you said, but had to add a , after the require statement:

use {
         'lalitmee/cobalt2.nvim',
         requires = 'tjdevries/colorbuddy.nvim',
         config = function()
                 require("colorbuddy").colorscheme("cobalt2")
         end
 }

I think I already tried this earlier, the effect is the same. Colors are still broken.

@lalitmee
Copy link
Owner

@brimosimo, as far as I remember when I was using packer I used to have an after/plugin/color.lua where I used to call the following:

require("colorbuddy").colorscheme("cobalt2")

And the following was my init.lua. I am sure that there is some setting mistake.

Please check it with minimal config. Maybe some other plugin is conflicting with it.

@brimosimo
Copy link
Author

@lalitmee I tried this suggestions multiple times, tried it with all settings I could find online, verified again my $TERM env is correct. Installed different terminals, alacritty and kitty, all show the same color. I tried with a custom minimal .lua config calling nvim -u minimal.lua only having packer and colorbuddy plus cobalt2, it always results in those broken colors. I even installed neovim 9.5 because I read that 10.0 introduced changes to highlight groups, still, same effect.
I moved all my shell customisation like .profile and .zprofile, still no luck. I honestly have no idea what else I should try. I appreciate your instant replies though, thank you very much.

@LlanddewiLovesYou
Copy link

Hey, sorry to chime in on here as well... but having similar issues with lazy.nvim. Mainly I some of the colors come through but not all according to what I can here: https://github.com/lalitmee/cobalt2.nvim/blob/master/lua/cobalt2/languages/javascript.lua
Screenshot 2024-12-14 at 5 15 18 PM
Is there anything I can do?

@lalitmee
Copy link
Owner

Hey, sorry to chime in on here as well... but having similar issues with lazy.nvim. Mainly I some of the colors come through but not all according to what I can here: https://github.com/lalitmee/cobalt2.nvim/blob/master/lua/cobalt2/languages/javascript.lua Screenshot 2024-12-14 at 5 15 18 PM Is there anything I can do?

Hey @LlanddewiLovesYou, sorry for replying this late. I missed your comment in my inbox.

Now if I talk about the colors, to me it looks like that the colors are coming as expected. If you can point out anything specific, then we can look at that. Also, there may be something conflicting with any other colors defined in your config or from any other plugin. Please check out for that too.

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

3 participants