From 7883d6d2d2fc7a133e43e5f26250856f69bd514d Mon Sep 17 00:00:00 2001 From: rydesun Date: Wed, 1 Dec 2021 01:33:37 +0800 Subject: [PATCH] Fix zsh in nvim --- .config/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/zshrc b/.config/zsh/zshrc index fedc9d0..4d19ea3 100644 --- a/.config/zsh/zshrc +++ b/.config/zsh/zshrc @@ -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