testing out nvchad
This commit is contained in:
parent
20843a0630
commit
e38cddf107
@ -1,6 +1,29 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
manager=paq
|
manager=nvchad
|
||||||
|
|
||||||
|
function nvchad_setup() {
|
||||||
|
nvchad_git='https://github.com/NvChad/NvChad'
|
||||||
|
config_root="${nvim_data[config_dir]}"
|
||||||
|
custom="${config_root}/lua"
|
||||||
|
git clone "$nvchad_git" "$config_root" --depth 1
|
||||||
|
if [[ $? != 0 ]]; then
|
||||||
|
printf 'Failed to clone\n' >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
printf 'nvchad is cloned into %s\n' "$config_root"
|
||||||
|
if ! type gclone &>/dev/null; then
|
||||||
|
printf 'manually clone nvchad config into %s\n' "$custom" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
cd "$custom"
|
||||||
|
gclone nvchad
|
||||||
|
ln -s nvchad custom
|
||||||
|
printf 'Config should be cloned into %s, linked to %s\n' \
|
||||||
|
"${custom}/nvchad" \
|
||||||
|
"${custom}/config"
|
||||||
|
# nvim --headless -c 'autocmd User MesonInstallAll quitall' -c 'PackerSync'
|
||||||
|
}
|
||||||
|
|
||||||
function paq_setup() {
|
function paq_setup() {
|
||||||
git clone --depth=1 https://github.com/savq/paq-nvim.git \
|
git clone --depth=1 https://github.com/savq/paq-nvim.git \
|
||||||
@ -21,6 +44,7 @@ function packer_setup() {
|
|||||||
rm "${nvim_data[config_dir]}/init.lua"
|
rm "${nvim_data[config_dir]}/init.lua"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Start
|
||||||
. nvim_data
|
. nvim_data
|
||||||
./remove_all
|
./remove_all
|
||||||
mkdir -p "${nvim_data[config_dir]}"
|
mkdir -p "${nvim_data[config_dir]}"
|
||||||
@ -32,4 +56,7 @@ case "$manager" in
|
|||||||
packer)
|
packer)
|
||||||
packer_setup
|
packer_setup
|
||||||
;;
|
;;
|
||||||
|
nvchad)
|
||||||
|
nvchad_setup
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user