Giter Club home page Giter Club logo

Comments (9)

jimenezj8 avatar jimenezj8 commented on September 26, 2024 6

I'm experiencing the same thing, will update if I find a solution

from zsh-syntax-highlighting.

cconstab avatar cconstab commented on September 26, 2024 1

All.. Ihad the same issue on masOS noted above and head scratched for a bit. The underlying issue is not this code but the macOS terminal emulator not responding to the color requests.

Try for yourself using a Windows box and the MSFT Terminal app ssh'ing to your mac and Tada everything is working as it should.

I have tested with our own GUI term we are working on at noports.com and prompt from the app store they work fine, but the terminal from Apple fails (boo).

https://github.com/alacritty/alacritty/releases also works for a free OpenSource option

Hope that helps !

Screenshot 2024-02-16 at 16 53 40

from zsh-syntax-highlighting.

lvieirasilva avatar lvieirasilva commented on September 26, 2024 1

For future users who find this: Simple workaround that took me a while to figure out since I'm a noob in MacOS: Migrating from default MacOS terminal to iTerm2 solved the problem. I believe it's because it supports truecolor

from zsh-syntax-highlighting.

hyperreal64 avatar hyperreal64 commented on September 26, 2024

I'm not sure I could be much help in debugging this because I don't have macOS and I don't use Homebrew.

I have a hunch that it might have something to do with using the zsh-autosuggestions and zsh-syntax-highlighting plugins from Homebrew. Can you try installing those plugins manually via Git?

git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/plugins/zsh-syntax-highlighting

And then source them in your ~/.zshrc in the same order as you did in your screenshot. Please let me know how it goes!

from zsh-syntax-highlighting.

RoyRao2333 avatar RoyRao2333 commented on September 26, 2024

I'm not sure I could be much help in debugging this because I don't have macOS and I don't use Homebrew.

I have a hunch that it might have something to do with using the zsh-autosuggestions and zsh-syntax-highlighting plugins from Homebrew. Can you try installing those plugins manually via Git?

git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/plugins/zsh-syntax-highlighting

And then source them in your ~/.zshrc in the same order as you did in your screenshot. Please let me know how it goes!

Thanks for the reply!

However, it's still no luck installing these plugins manually via Git. Texts are still grayed out...
image

from zsh-syntax-highlighting.

hyperreal64 avatar hyperreal64 commented on September 26, 2024

I don't know if this applies to your case, but for me on Linux, if there are symlinks somewhere in the path of the sourced file, the syntax highlighting doesn't show. For example, if anything in the path ~/.zsh/plugins/zsh-autosuggestions/zsh-syntax-highlighting.zsh or ~/.zsh/plugins/catppuccin_mocha-zsh-syntax-highlighting.zsh is a symlink whether to a file or directory.

from zsh-syntax-highlighting.

51616 avatar 51616 commented on September 26, 2024

I am having the same problem. My guess is that my terminal doesn't support 24-bit color and hence the hex codes used in the scripts here cannot be applied.

I tried quantizing them down to 256-color space, but the result is terrible :(

from zsh-syntax-highlighting.

hyperreal64 avatar hyperreal64 commented on September 26, 2024

I am having the same problem. My guess is that my terminal doesn't support 24-bit color and hence the hex codes used in the scripts here cannot be applied.

I tried quantizing them down to 256-color space, but the result is terrible :(

Are you on macOS by any chance?

from zsh-syntax-highlighting.

51616 avatar 51616 commented on September 26, 2024

Nope. I'm using zsh with xfce4-terminal.

Screenshot_2024-03-20_21-35-34

from zsh-syntax-highlighting.

Related Issues (4)

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.