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

Simplify your DevOps and maximize your time.

Since 2007, Heroku has been the go-to platform for developers as it monitors uptime, performance, and infrastructure concerns, allowing you to focus on writing code.

Learn More

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay