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:
parent
4409688bfb
commit
e7e2f48cdf
1 changed files with 9 additions and 7 deletions
16
home/.zshrc
16
home/.zshrc
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue