DEV Community

Cover image for Setting Up Neovim
fajar sp
fajar sp

Posted on

1 1

Setting Up Neovim

This Original Post is here

Install NeoVim

wget https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
mkdir nvim
mv nvim-linux64.tar.gz nvim
cd nvim
tar -xvf nvim-linux64.tar.gz
sudo ln -s ~/nvim/nvim-linux64/bin/nvim /usr/local/bin/nvim
Enter fullscreen mode Exit fullscreen mode

Make a backup of your current Neovim configuration files:

# Linux / MacOS (Unix)
mv ~/.config/nvim{,.bak}
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}
Enter fullscreen mode Exit fullscreen mode

Using LazyVim

Clone the LazyVim starter repository and open Neovim:

git clone https://github.com/LazyVim/starter ~/.config/nvim && nvim
Enter fullscreen mode Exit fullscreen mode

Remove the .git folder so you can add it to your own repository later:

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

Full documentation is available here.

Using NvChad

Clone the NvChad starter repository and open Neovim:

git clone https://github.com/NvChad/starter ~/.config/nvim && nvim
Enter fullscreen mode Exit fullscreen mode

The default mappings are defined
here.

Check
configs.md
to ensure your language's LSP server is present there and edit the
configs/lspconfig.lua file to add your language's LSP.

Full documentation is available
here.

Canonical URL
For more detailed information, visit the original post on my blog.

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

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