-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
34 lines (26 loc) · 1.11 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
set -e
echo "Installing dependencies..."
sudo apt update
sudo apt install -y git curl wget unzip neovim
# Clone the dotfiles repository (if not already present)
if [ ! -d "$HOME/dotfiles" ]; then
git clone --recurse-submodules https://github.com/kristofferrisa/dotfiles.git ~/dotfiles
fi
# Navigate to the dotfiles directory
cd ~/dotfiles
# Remove the old custom Neovim configuration (if any)
rm -rf ~/.config/nvim
# Clone LazyVim's starter configuration into ~/.config/nvim
echo "Installing LazyVim configuration..."
git clone https://github.com/LazyVim/starter ~/.config/nvim
# If you have custom LazyVim overrides, you can symlink them in.
# For example, if you moved your overrides to dotfiles/nvim-custom:
# rm -rf ~/.config/nvim/lua/custom
# ln -s ~/dotfiles/nvim-custom ~/.config/nvim/lua/custom
# Stow other configurations
stow -t ~ bin
# If you previously stowed a .config directory that included your old nvim config,
# ensure that you remove or skip stowing the nvim part:
# stow -t ~/.config some-other-config-folder
echo "Dotfiles and LazyVim setup complete. Launch Neovim to finish the plugin setup."