18 lines
433 B
Bash
Raw Normal View History

2024-02-04 15:06:13 +00:00
#!/bin/bash
# Configuration for neovim
2024-02-04 15:06:13 +00:00
# git_repo="https://github.com/AstroNvim/template"
# git_branch="main"
git_repo="https://gitea.cloud.logerais.com/xavier/config-astronvim.git"
git_branch="astronvim_v4"
config_dir=${XDG_CONFIG_HOME:-$HOME/.config}/nvim
2024-02-04 15:06:13 +00:00
if [[ ! -d "${config_dir}" ]]; then
git clone "${git_repo}" --branch "${git_branch}" "${config_dir}"
nvim --headless +q
else
cd "${config_dir}" && git pull
fi