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

Plugin order concerns #4

Open
WhatsThatItsPat opened this issue Apr 20, 2020 · 2 comments
Open

Plugin order concerns #4

WhatsThatItsPat opened this issue Apr 20, 2020 · 2 comments

Comments

@WhatsThatItsPat
Copy link
Owner

WhatsThatItsPat commented Apr 20, 2020

https://github.com/zsh-users/zsh-history-substring-search#usage

If you want to use zsh-syntax-highlighting along with this script, then make sure that you load it before you load this script:

% source zsh-syntax-highlighting.zsh
% source zsh-history-substring-search.zsh

Related: 86ed3bc

@WhatsThatItsPat
Copy link
Owner Author

WhatsThatItsPat commented Apr 20, 2020

Why must zsh-syntax-highlighting.zsh be sourced at the end of the .zshrc file?

zsh-syntax-highlighting.zsh wraps ZLE widgets. It must be sourced after all custom widgets have been created (i.e., after all zle -N calls and after running compinit). Widgets created later will work, but will not update the syntax highlighting.

@WhatsThatItsPat
Copy link
Owner Author

WhatsThatItsPat commented Apr 30, 2020

We went with zdharma/fast-syntax-highlighting instead (07d9fe0), but it's set up in the same order suggested above and seems to work.

WhatsThatItsPat added a commit that referenced this issue Sep 15, 2020
WhatsThatItsPat added a commit that referenced this issue Sep 15, 2020
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

1 participant