2025-01-11 14:55:08 -06:00
|
|
|
#!/bin/zsh
|
|
|
|
|
2025-01-18 14:14:54 -06:00
|
|
|
local install_command="sudo apt install"
|
2025-01-12 15:34:45 -06:00
|
|
|
[[ -x $(which brew) ]] && install_command="brew install"
|
|
|
|
|
2025-01-18 14:14:54 -06:00
|
|
|
local neovim_dir=$HOME/.local/build/neovim
|
|
|
|
local neovim_version="v0.10.3"
|
2025-01-12 15:34:45 -06:00
|
|
|
[ ! -z $NVIM_VERSION ] && neovim_version="$NVIM_VERSION"
|
|
|
|
echo "neovim_version: \"$neovim_version\""
|
|
|
|
|
|
|
|
[ ! -d $neovim_dir ] && git clone https://github.com/neovim/neovim.git $neovim_dir
|
|
|
|
git -C $neovim_dir fetch --all
|
|
|
|
git -C $neovim_dir checkout $neovim_version
|
|
|
|
|
|
|
|
$install_command cmake gettext lua@5.1 liblua5.1-0-dev
|
|
|
|
|
|
|
|
make -C $neovim_dir clean
|
|
|
|
make -C $neovim_dir CMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
sudo make -C $neovim_dir install
|
|
|
|
|
|
|
|
# lines below from primeagen's dev repo, uncomment/edit as needed
|
|
|
|
# git clone https://github.com/ThePrimeagen/harpoon.git $HOME/personal/harpoon
|
|
|
|
# cd $HOME/personal/harpoon
|
|
|
|
# git fetch
|
|
|
|
# git checkout harpoon2
|
|
|
|
|
|
|
|
# git clone https://github.com/ThePrimeagen/vim-apm.git $HOME/personal/vim-apm
|
|
|
|
# git clone https://github.com/ThePrimeagen/vim-with-me.git $HOME/personal/vim-with-me
|
|
|
|
# git clone https://github.com/ThePrimeagen/vim-arcade.git $HOME/personal/vim-arcade
|
|
|
|
# git clone https://github.com/ThePrimeagen/caleb.git $HOME/personal/caleb
|
|
|
|
# git clone https://github.com/nvim-lua/plenary.nvim.git $HOME/personal/plenary
|
|
|
|
|