add neovim build scripts

master
Dominik Madarász 2024-05-21 18:59:08 +00:00
parent 543779c792
commit f317903d3d
3 changed files with 24 additions and 3 deletions

13
build_neovim 100755
View File

@ -0,0 +1,13 @@
#!/bin/bash
git clone --recursive --depth=1 https://github.com/neovim/neovim.git build-neovim
cd build-neovim
git fetch --all --tags
git checkout tags/v0.9.5
rm -rf build
make CMAKE_BUILD_TYPE=Release -j8
sudo make install
cd ..
rm -rf build-neovim

5
nuke_neovim 100755
View File

@ -0,0 +1,5 @@
#!/bin/bash
sudo rm /usr/local/bin/nvim
sudo rm -r /usr/local/share/nvim/

9
prep
View File

@ -1,9 +1,12 @@
#!/bin/bash
sudo apt update && sudo apt upgrade -y
sudo apt install -y neovim ripgrep build-essential git cmake fzf stow zsh
sudo update-alternatives --set editor /usr/bin/nvim
sudo update-alternatives --set vim /usr/bin/nvim
sudo apt install -y ripgrep build-essential git cmake fzf stow zsh
sudo apt install -y ninja-build gettext unzip curl
sudo update-alternatives --set editor /usr/local/bin/nvim
sudo update-alternatives --set vim /usr/local/bin/nvim
sh ./build_neovim
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim