mini-dots/chezmoi/dot_config/zsh/aliases/nvim.zsh
aleidk d3a88cbb28 first commit
config imported from personal dotfiles aleee-idk/dots
2024-08-05 14:51:17 -04:00

22 lines
441 B
Bash

alias \
vi='nvim' \
vi-astro='NVIM_APPNAME=Distro-AstroNvim nvim' \
vi-lazy='NVIM_APPNAME=LazyVim nvim'
vis() {
items=(
default
AstroNvim
LazyVim
)
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 $@
}