mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
23 lines
540 B
Bash
Executable File
23 lines
540 B
Bash
Executable File
#!/bin/zsh
|
|
|
|
# Change / select an nvim configuration.
|
|
#
|
|
# The configuration's need to be in the ~/.config folder
|
|
# to work properly.
|
|
#
|
|
main() {
|
|
items=("default" "m-housh" "kickstart" "lazy")
|
|
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
|
|
unset VIMINIT && unset MYVIMRC && export NVIM_APPNAME=$config && nvim $@
|
|
}
|
|
|
|
main "$@"
|