Skip to content

Commit

Permalink
feat: disable vi-mode if running inside neovim (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgokcin authored Jul 13, 2024
1 parent f4beab3 commit 9931dd1
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,33 @@ PROMPT_EOL_MARK=""
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
vi-mode
zsh-autosuggestions
history-substring-search
web-search
docker
kubectl
nvm
aws
z
)
# Check if running inside Neovim terminal
if [[ -z "$NVIM_LISTEN_ADDRESS" ]]; then
plugins=(
git
vi-mode
zsh-autosuggestions
history-substring-search
web-search
docker
kubectl
nvm
aws
z
)
else
plugins=(
git
zsh-autosuggestions
history-substring-search
web-search
docker
kubectl
nvm
aws
z
)
fi

source $ZSH/oh-my-zsh.sh
autoload -U +X compinit && compinit
Expand Down Expand Up @@ -153,4 +163,4 @@ eval "$(/opt/homebrew/bin/brew shellenv)"

# Created by `pipx` on 2024-06-14 23:26:07
export PATH="$PATH:/Users/denizgokcin/.local/bin"
if [ -f "/Users/denizgokcin/.config/fabric/fabric-bootstrap.inc" ]; then . "/Users/denizgokcin/.config/fabric/fabric-bootstrap.inc"; fi
if [ -f "/Users/denizgokcin/.config/fabric/fabric-bootstrap.inc" ]; then . "/Users/denizgokcin/.config/fabric/fabric-bootstrap.inc"; fi

0 comments on commit 9931dd1

Please sign in to comment.