From 36afcfabb4ae1216a329b08f687fcd0f30a88cde Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sat, 17 Sep 2022 09:22:45 -0400 Subject: [PATCH] Start using nvim where available (again) --- zsh/.zshenv | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zsh/.zshenv b/zsh/.zshenv index 25e284d..d4c428e 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -48,8 +48,11 @@ fi [[ -d "$PERSONAL_FPATH" ]] && FPATH="$PERSONAL_FPATH:$FPATH" # EDITOR -export EDITOR=vim -export GIT_EDITOR=vim +if command -v nvim > /dev/null; then + export {EDITOR,GIT_EDITOR}=nvim +else + export {EDITOR,GIT_EDITOR}=vim +fi # Don't let Debian distributions run compinit skip_global_compinit=1