mirror of
https://github.com/NvChad/NvChad.git
synced 2024-11-18 15:25:47 +00:00
minor changes
This commit is contained in:
parent
91aee2505b
commit
669ad346e9
30
install.sh
30
install.sh
@ -23,14 +23,24 @@ get_platform() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
heading "Linking config"
|
heading "Linking config"
|
||||||
for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do
|
heading "old nvim config will be deleted"
|
||||||
p=${f#*/}
|
|
||||||
echo -e '\t' ${p}
|
# copying config
|
||||||
path=~/.config/nvim/${p}
|
|
||||||
rm -rf ~/.config/nvim/${p}
|
cd .. && cp -r neovim-dots ~/.config
|
||||||
mkdir -p $(dirname "${path}")
|
mv ~/.config/neovim-dots ~/.config/nvim
|
||||||
ln -s ${BASE}/${p} ~/.config/nvim/${p}
|
rm -rf ~/.config/nvim/.git
|
||||||
done
|
rm -rf ~/.config/nvim/install.sh
|
||||||
|
rm -rf ~/.config/nvim/README.md
|
||||||
|
|
||||||
|
#for f in `find -E . -regex ".*\.vim$|.*\.lua$"`; do
|
||||||
|
# p=${f#*/}
|
||||||
|
# echo -e '\t' ${p}
|
||||||
|
# path=~/.config/nvim/${p}
|
||||||
|
# rm -rf ~/.config/nvim/${p}
|
||||||
|
# mkdir -p $(dirname "${path}")
|
||||||
|
# ln -s ${BASE}/${p} ~/.config/nvim/${p}
|
||||||
|
#done
|
||||||
|
|
||||||
if [[ ! -e ~/.local/share/nvim/site/pack/packer/start/packer.nvim ]]; then
|
if [[ ! -e ~/.local/share/nvim/site/pack/packer/start/packer.nvim ]]; then
|
||||||
heading "Installing packer"
|
heading "Installing packer"
|
||||||
@ -39,8 +49,8 @@ if [[ ! -e ~/.local/share/nvim/site/pack/packer/start/packer.nvim ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
heading "Installing plugins"
|
heading "Installing plugins"
|
||||||
nvim --headless +PackerInstall +qa
|
#nvim --headless +PackerInstall +qa
|
||||||
nvim --headless +TSUpdate +qa
|
#nvim --headless +TSUpdate +qa
|
||||||
echo
|
echo
|
||||||
|
|
||||||
fn_exists() { declare -F "$1" > /dev/null; }
|
fn_exists() { declare -F "$1" > /dev/null; }
|
||||||
|
Loading…
Reference in New Issue
Block a user