Skip to content

Commit

Permalink
Fix LazyVim installation
Browse files Browse the repository at this point in the history
  • Loading branch information
michelegera committed Dec 10, 2023
1 parent d5cd214 commit 7862bc6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ src/shell/config/nvim/*
!src/shell/config/nvim/lua
src/shell/config/nvim/lua/*
!src/shell/config/nvim/lua/plugins
src/shell/config/nvim/lua/plugins/example.lua

!src/shell/config/starship.toml
!src/shell/config/tmux
Expand Down
11 changes: 8 additions & 3 deletions src/os/installs/neovim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ cd "$(dirname "${BASH_SOURCE[0]}")" \
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

install_lazyvim() {

git clone https://github.com/LazyVim/starter ~/.config/nvim && \
rm -rf ~/.config/nvim/.git &> /dev/null
declare -r NVIM_DIRECTORY="$HOME/.config/nvim"

# Clone the repository into an non-empty directory
git -C "$NVIM_DIRECTORY" init &> /dev/null
git -C "$NVIM_DIRECTORY" remote add origin https://github.com/LazyVim/starter &> /dev/null
git -C "$NVIM_DIRECTORY" fetch &> /dev/null
git -C "$NVIM_DIRECTORY" checkout origin/main &> /dev/null
rm -rf "$NVIM_DIRECTORY/.git" &> /dev/null

print_result $? "Install LazyVim"

Expand Down

0 comments on commit 7862bc6

Please sign in to comment.