add some stuff

This commit is contained in:
Alexander Navarro 2023-04-20 18:06:24 -04:00
parent d93a470903
commit 0086e99679
5 changed files with 296 additions and 0 deletions

View file

@ -0,0 +1,22 @@
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"