getantidote / zdotdir

A full-featured sample Zsh config driven by antidote
MIT License
111 stars 42 forks source link

Source config after plugins #1

Closed hMED22 closed 2 years ago

hMED22 commented 2 years ago

Fixes an error I'm having on a fresh install:

zsh-syntax-highlighting: unhandled ZLE widget 'history-substring-search-up'
zsh-syntax-highlighting: (This is sometimes caused by doing `bindkey <keys> history-substring-search-up` without creating the 'history-substring-search-up' widget with `zle -N` or `zle -C`.)
zsh-syntax-highlighting: unhandled ZLE widget 'history-substring-search-down'
zsh-syntax-highlighting: (This is sometimes caused by doing `bindkey <keys> history-substring-search-down` without creating the 'history-substring-search-down' widget with `zle -N` or `zle -C`.)

Which according to https://github.com/zsh-users/zsh-syntax-highlighting/issues/411#issuecomment-317077561 can be fixed by setting keybinds (zshrc.d/history-substring-search.zsh) after sourcing the plugins

mattmc3 commented 2 years ago

Depending on what you put in your zshrc.d directory, sourcing it after things like syntax highlighting and autocomplete can cause problems too. I suspect this PR, while helpful to some, might be harmful for other configs. It's worth addressing, but not like this.