Fix zsh in nvim

This commit is contained in:
rydesun 2021-12-01 01:33:37 +08:00
parent 62528f95e1
commit 7883d6d2d2

View file

@ -262,7 +262,7 @@ alias v="nvim -R --cmd 'let \$NVIM_AS_PAGER=1'" \
&& compdef v=nvim # 使用neovim作为pager
alias V="nvim -R --cmd 'let \$NVIM_AS_COLORFUL_PAGER=1'" \
&& compdef V=nvim # 使用neovim作为pager支持ANSI code
if [[ -e $_ENV_NVIM ]]; then
if (($_ENV_NVIM)); then
alias e='nvr --remote-tab'
else
alias e='nvim' && compdef e=nvim