dots/config/zsh/aliases/nvim.zsh
2023-04-20 18:06:24 -04:00

22 lines
429 B
Bash

alias \
vi='nvim' \
vi-astro='NVIM_APPNAME=AstroNvim nvim'
vis() {
items=(
default
AstroNvim
)
config=$(printf "%s\n" "${items[@]}" | fzf --prompt=" Neovim Config  " --height=~50% --layout=reverse --border --exit-0)
if [[ -z $config ]]; then
echo "Nothing selected"
return 0
elif [[ $config == "default" ]]; then
config=""
fi
NVIM_APPNAME=$config nvim $@
}
bindkey -s ^a "vis\n"