Split out nvim installer

So we dont have to rerun if already there
This commit is contained in:
David Heinemeier Hansson
2025-06-24 14:53:50 -07:00
parent 705ef9fc63
commit 6409d5765c
2 changed files with 11 additions and 11 deletions

View File

@ -1,11 +1 @@
yay -S --noconfirm --needed \
nvim luarocks tree-sitter-cli \
mise github-cli \
lazygit lazydocker
# Install LazyVim
rm -rf ~/.config/nvim
git clone https://github.com/LazyVim/starter ~/.config/nvim
cp -R ~/.local/share/omarchy/config/nvim/* ~/.config/nvim/
rm -rf ~/.config/nvim/.git
echo "vim.opt.relativenumber = false" >>~/.config/nvim/lua/config/options.lua
yay -S --noconfirm --needed mise github-cli lazygit lazydocker

10
install/nvim.sh Normal file
View File

@ -0,0 +1,10 @@
if ! command -v nvim &>/dev/null; then
yay -S --noconfirm --needed nvim luarocks tree-sitter-cli
# Install LazyVim
rm -rf ~/.config/nvim
git clone https://github.com/LazyVim/starter ~/.config/nvim
cp -R ~/.local/share/omarchy/config/nvim/* ~/.config/nvim/
rm -rf ~/.config/nvim/.git
echo "vim.opt.relativenumber = false" >>~/.config/nvim/lua/config/options.lua
fi