Skip to content

Commit

Permalink
chore: add notes on zsh usage in neovim
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Sep 21, 2023
1 parent 6859cbe commit def8846
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zsh/zshrc.shared
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ fi

# using zsh in neovim terminal mode.
# neovim defines $NVIM in terminal mode and based on it
# we can use nvr.
# we can detect we are running inside neovim and use nvr
# instead of neovim, etc.
if [ ! -z "$NVIM" ]; then
alias nvim=nvr
export EDITOR="nvr -cc split +'set bufhidden=delete' --remote-wait"
Expand Down

0 comments on commit def8846

Please sign in to comment.