Giter Club home page Giter Club logo

Comments (2)

rubyowo avatar rubyowo commented on September 26, 2024 1

thanks!

from zsh-syntax-highlighting.

hyperreal64 avatar hyperreal64 commented on September 26, 2024

Hello. When you say weird underline, do you mean the underlining itself is the problem, or do you mean how it uses the same color as the path separator?

If you don't like the underlining itself, you can disable it by editing lines 60-63 of the catppuccin_macchiato-zsh-syntax-highlighting.zsh file and removing the "underline" portion. So those lines should now look like this:

ZSH_HIGHLIGHT_STYLES[path]='fg=#cad3f5'
ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=#ed8796'
ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#cad3f5'
ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#ed8796'

If you don't like how the underline color matches the color of the path separator, but you still want to keep the underline, the best way is to edit lines 60-63 of the syntax highlighting file to look like this:

ZSH_HIGHLIGHT_STYLES[path]='fg=#cad3f5,underline'
ZSH_HIGHLIGHT_STYLES[path_pathseparator]='fg=#ed8796'
ZSH_HIGHLIGHT_STYLES[path_prefix]='fg=#cad3f5,underline'
ZSH_HIGHLIGHT_STYLES[path_prefix_pathseparator]='fg=#ed8796'

This will result in having gaps in the underlining for the path separator. In my opinion, this looks better anyway, so I might make this change in the repo for all flavors. I will also provide a no-path-underline file for each flavor, so that users can decide themselves instead of having to edit the file.

Let me know if this helps!

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.