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

[bug]: command-specific highlighting does not work / chroma functions fail to load #41

Open
2 of 3 tasks
amezin opened this issue Apr 12, 2024 · 1 comment
Open
2 of 3 tasks
Labels
bug 🐞 Inconsistencies or issues which will cause a problem for users or implementors. triage 📑 The issue is awaiting investigation.

Comments

@amezin
Copy link

amezin commented Apr 12, 2024

Environment

OSTYPE=linux-gnu CPUTYPE=x86_64 / MACHINE_TYPE=x86_64 ZSH_VERSION=5.9

Expected behavior

For example, git subcommands should be highlighted.

Current behavior

No command-specific highlighting. Chroma files/functions not found:

$ chroma/-git.ch
zsh: chroma/-git.ch: function definition file not found

Steps to reproduce

Install F-Sy-H without package manager. For example, as a git submodule: https://github.com/amezin/zdotdir

Type "git checkout" in prompt, "checkout" isn't highlighted

Code snippet

source "${ZDOTDIR}/fast-syntax-highlighting/F-Sy-H.plugin.zsh"

# Adding the following line makes git-specific highlighting work
fpath+=("${ZDOTDIR}/fast-syntax-highlighting")

Aditional information

chroma should likely be inside functions

Self-service

  • I'd be willing to address this documentation request myself.

Have you read the Contributing Guidelines?

Are you familiar with Contributor Covenant Code of Conduct?

Contact Details

No response

@amezin amezin added bug 🐞 Inconsistencies or issues which will cause a problem for users or implementors. triage 📑 The issue is awaiting investigation. labels Apr 12, 2024
amezin added a commit to amezin/F-Sy-H that referenced this issue Apr 12, 2024
Make chroma functions load.

Otherwise `chroma` isn't in `fpath`:

    zsh: chroma/-git.ch: function definition file not found

Fixes z-shell#41
@setpill
Copy link

setpill commented Aug 7, 2024

Also experiencing this issue when loading z-shell/F-Sy-H using zplug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Inconsistencies or issues which will cause a problem for users or implementors. triage 📑 The issue is awaiting investigation.
Projects
None yet
Development

No branches or pull requests

2 participants