F-Sy-H icon indicating copy to clipboard operation
F-Sy-H copied to clipboard

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

Open amezin opened this issue 1 year ago • 1 comments

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 avatar Apr 12 '24 01:04 amezin

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

setpill avatar Aug 07 '24 15:08 setpill