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

Using zsh in ubuntu #904

Open
Reverendyz opened this issue Nov 22, 2022 · 2 comments
Open

Using zsh in ubuntu #904

Reverendyz opened this issue Nov 22, 2022 · 2 comments

Comments

@Reverendyz
Copy link

i am trying to follow strictly this INSTALL.md and use this syntax highlighting but am always getting:

zsh-syntax-highlighting: error: $region_highlight is not defined
zsh-syntax-highlighting: (Check whether zsh-syntax-highlighting was installed according to the instructions.)

I tryied almost every solution on google. Anyone's getting the same error?

@Reverendyz
Copy link
Author

For any reason, after this error, the syntax highlighting worked ¯_(ツ)_/¯

@danielshahaf
Copy link
Member

INSTALL.md lists several different ways to install on Ubuntu. How exactly did you install?

At any rate, that error message means _zsh_highlight was invoked as a plain function rather than as a zle widget. That's not supposed to happen under any installation method. Easiest way to debug is to print -r -- $funcstack > /dev/tty at the top of _zsh_highlight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants