Giter Club home page Giter Club logo

Comments (5)

ben-goldman avatar ben-goldman commented on August 18, 2024 1

Hi,
It looks like I am having the same/very similar issue. I am using neovim over tmux on alacritty for mac. I have verified that the terminal supports true color, but the vim colors still appear wrong.
image
Here is what my vimrc looks like with this color scheme:
image
Most of the colors look ok, except for the comments, where the background and foreground colors seem to be switched.
Here is my tmux.conf:
image
It also looks like the sonokai colorscheme is having a similar problem, where certain highlight groups have the foreground and backgronud colors switched.
Also, when I load files with macvim, or on neovim (with terminal) without tmux, the colors appear correct.
Do you know what's going on?

This looks like a really amazing colorscheme, I would love to start using it!
Thanks!

from edge.

sainnhe avatar sainnhe commented on August 18, 2024

It's true colors problem, I provided detailed debug steps in FAQ.

edge/doc/edge.txt

Lines 296 to 318 in e40571b

------------------------------------------------------------------------------
Q:~
It doesn't work as expected.
A:~
1. This color scheme is mainly designed for true colors, `set termguicolors`
is required. Check output of `vim --version`, maybe your vim doesn't support
`termguicolors`.
2. Maybe your terminal emulator doesn't support true colors, you can test
it using [this script](https://unix.stackexchange.com/questions/404414/print-true-color-24-bit-test-pattern).
3. If you are running vim in tmux, you need to override default true
colors of tmux, as tmux cannot display true colors properly:
[#1246 How to use true colors in vim under tmux?](https://github.com/tmux/tmux/issues/1246)
4. There are many highlight group links in syntax files while a color
scheme may change them, enabling one color scheme based on another color
scheme enabled is very likely to cause colors to break. If any color is
broken, you can enable the color scheme in your vimrc instead of after
vim startup.
------------------------------------------------------------------------------

from edge.

Integralist avatar Integralist commented on August 18, 2024

So terminal.app doesn't quite have the true color support necessary, so I switched to iTerm2 which does support true color but I still had issues with it rendering the theme.

From the 4 items listed to check, I did the first three and the last item I kinda already have by virtue of setting my colorscheme using autocmd vimenter.

I'll keep digging, as it looks like most of the theme is ok with the exception of the background colour being almost black instead of purple like your README shows. Which makes me think the terminal's own theme is messing something up (as per Nord's suggestion to use their own terminal theme to avoid that issue).

from edge.

sainnhe avatar sainnhe commented on August 18, 2024

See FAQ, the comment color looks weird because your terminal emulator doesn't support italics. Use g:edge_disable_italic_comment to disable it.

from edge.

ben-goldman avatar ben-goldman commented on August 18, 2024

Thanks! All fixed! Looks great!

from edge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.