add lazynvim config

This commit is contained in:
Alexander Navarro 2023-05-16 14:23:53 -04:00
parent a1b3ad3dc8
commit 7b2cfd98dd
9 changed files with 361 additions and 13 deletions

View file

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