minor changes

This commit is contained in:
siduck76 2021-03-27 08:20:15 +05:30
parent 91aee2505b
commit 669ad346e9
1 changed files with 20 additions and 10 deletions

View File

@ -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; }