1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

fix: zsh fast-syntax-highlighting wasn't overriding new up down widgets

This commit is contained in:
oddlama 2023-09-18 14:53:23 +02:00
parent 736287e536
commit 80a4544bee
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
2 changed files with 6 additions and 5 deletions

View file

@ -20,6 +20,12 @@
initExtra = lib.readFile ./zshrc; initExtra = lib.readFile ./zshrc;
initExtraFirst = '' initExtraFirst = ''
HISTDB_FILE=''${XDG_DATA_HOME-$HOME/.local/share}/zsh/history.db HISTDB_FILE=''${XDG_DATA_HOME-$HOME/.local/share}/zsh/history.db
# Do this early so fast-syntax-highlighting can wrap and override this
if autoload history-search-end; then
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
fi
''; '';
plugins = [ plugins = [
{ {

View file

@ -77,11 +77,6 @@ zle -N fzf-cd
bindkey -d bindkey -d
bindkey -e bindkey -e
if autoload history-search-end; then
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
fi
function nop() { function nop() {
true true
}; zle -N nop }; zle -N nop