DEV Community

hardyweb
hardyweb

Posted on

1

Compile Neovim in Debian/Ubuntu Linux

*Fresh Debian Install *

Sudo apt-get install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip doxygen -y
git clone https://github.com/neovim/neovim
cd neovim && make
make install
sudo make install
cd ..
rm -rf neovim
Enter fullscreen mode Exit fullscreen mode

existing neovim source

$cd neovim
$rm -rf .deps/
$rm -rf builds/
$git pull
$make
$sudo make install
Enter fullscreen mode Exit fullscreen mode

Top comments (2)

Collapse
 
gokayburuc profile image
gokayburuc.dev

And you can also add a bash script to establish a Neovim distro (Neovide, NVChad, Astro, Lazy, Kickstart, etc.).

astro-setup.sh

Create a bash script file named astro-setup.sh that has content given below:

mv ~/.config/nvim ~/.config/nvim.bak

mv ~/.local/share/nvim ~/.local/share/nvim.bak
mv ~/.local/state/nvim ~/.local/state/nvim.bak
mv ~/.cache/nvim ~/.cache/nvim.bak

git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim
# remove template's git connection to set up your own later
rm -rf ~/.config/nvim/.git

Enter fullscreen mode Exit fullscreen mode

Then just run the command:

$ sh astro-setup.sh 
Enter fullscreen mode Exit fullscreen mode

lazy-setup.sh


# required
mv ~/.config/nvim{,.bak}

# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}

# clone project
git clone https://github.com/LazyVim/starter ~/.config/nvim

# git remove
rm -rf ~/.config/nvim/.git
Enter fullscreen mode Exit fullscreen mode

Use the same method in section astro-setup.sh.**

Collapse
 
hardyweb profile image
hardyweb

nice, thank you ..

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up