Compile Neovim in Debian/Ubuntu Linux
hardyweb

hardyweb @hardyweb

About: Highly motivated and self-directed IT professional with a strong foundation in web development (particularly Laravel) and a passion for continuous learning.

Location:
Terengganu, Malaysia
Joined:
Jun 20, 2022

Compile Neovim in Debian/Ubuntu Linux

Publish Date: Oct 3 '24
1 2

*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

Comments 2 total

  • gokayburuc.dev
    gokayburuc.devDec 2, 2024

    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.**

Add comment