From 6409d5765c90c6a58de03ee82cf47323a3312375 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 24 Jun 2025 14:53:50 -0700 Subject: [PATCH] Split out nvim installer So we dont have to rerun if already there --- install/development.sh | 12 +----------- install/nvim.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) create mode 100644 install/nvim.sh diff --git a/install/development.sh b/install/development.sh index cc327de..da7f7e5 100644 --- a/install/development.sh +++ b/install/development.sh @@ -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 diff --git a/install/nvim.sh b/install/nvim.sh new file mode 100644 index 0000000..d1c5c85 --- /dev/null +++ b/install/nvim.sh @@ -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