Only add locally build nvim to path if we have built it, also, move custom keybindings to the end of the file so they dont get overriden by other stuff

This commit is contained in:
Martin Larsson 2024-06-01 13:29:56 +02:00
parent 4409688bfb
commit e7e2f48cdf

View file

@ -4,7 +4,9 @@ if [[ "$(uname)" == "Darwin" ]]; then
fi
# Paths
export PATH=$HOME/.local/nvim/bin:$PATH # Nightly neovim
if [[ -d $HOME/.local/nvim ]]; then
export PATH=$HOME/.local/nvim/bin:$PATH # Nightly neovim
fi
# Set the directory we want to store zinit and plugins
ZINIT_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/zinit/zinit.git"
@ -63,12 +65,6 @@ setopt hist_ignore_dups
setopt hist_save_no_dups
setopt hist_find_no_dups
# Keybindings
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
bindkey '^[[A' history-search-backward
bindkey '^[[B' history-search-forward
# Completion styling
zstyle ':completion:*' matcher-list 'm:{z-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
@ -121,3 +117,9 @@ fi
fastfetch
# Keybindings
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
bindkey '^[[A' history-search-backward
bindkey '^[[B' history-search-forward