theme: ricetheme
New palette
New palette

Install LazyVim: A Complete Guide for Neovim

Install LazyVim and get a ready-to-code Neovim setup, with first-launch checks, distro package fixes, font and terminal tips, and theme customization.

A flat illustration showing a package releasing modular tiles that snap into a Neovim editor window against a dark terminal background.

tl;dr the short answer

LazyVim is a ready-made configuration for Neovim that adds common coding tools, such as autocomplete, file search, Git support, and a customizable interface. To install it, set up a compatible Neovim version and required tools, back up your existing configuration, copy in the starter files, then launch Neovim and let plugins and language support install; a Nerd Font and capable terminal help icons and colors display correctly. Check the setup with a language-server test or `:checkhealth`, then adjust settings and add plugins as needed, so you can start editing quickly without giving up

Think about moving into a new apartment. The boxes can wait, but you’ll want the kitchen set up before you cook a single meal.

LazyVim does that for your editor: it gives you a fully furnished Neovim setup on day one, so you can start writing code instead of wiring up plugins.

In this post, we’ll walk through installing LazyVim, from Neovim and its dependencies through first launch, verification, and customization.

We’ll also cover Linux-specific fixes for distro package versions, fonts, and terminal setup, plus how to match the theme to your desktop palette.

Why Install LazyVim and What It Does

LazyVim is a ready-made setup for Neovim, the editor you’re installing first. Here’s what it adds, and what you get the moment you open it.

How Neovim differs from Vim

Neovim is a modern fork of Vim, so the editing you know carries over. What changes is how it’s configured: settings are written in Lua, a lightweight scripting language.

Neovim also has native LSP (Language Server Protocol) support, the standard way an editor learns a language’s names, errors, and definitions. That’s why we recommend Neovim over Vim for a new setup.

LazyVim comes preconfigured for you

Hand-building a modern setup can eat weeks of plugin work. LazyVim skips that with a working configuration built on lazy.nvim, a plugin manager (the tool that installs and updates your plugins).

It’s opinionated and batteries-included, so sensible choices come in the box, and it’s usable from your first launch. It’s also modular and easy to extend, so you can layer your own changes on top later.

Consider a Linux user on a fresh install who wants to tweak a config file tonight. Instead of building an editor from scratch, they launch LazyVim and are editing within minutes. Less setup. More editing.

What comes built in

Out of the box, you get:

  • LSP and autocomplete. Language support that suggests completions as you type.
  • Treesitter highlighting. Treesitter, a parser that understands your code’s structure, colors it accurately.
  • File explorer and fuzzy finder. Browse your project in a sidebar, and find any file by typing a few letters of its name.
  • Git integration. See your repository’s changes without leaving the editor.
  • which-key shortcut menu. Press the leader key (the prefix you hit before most commands), and a menu lists the shortcuts available next.
  • Default theme. A ready-to-use color scheme that you can swap later to match your desktop palette.

What You Need Before Starting

Before LazyVim can run, you need Neovim and a few small helpers, so let’s sort those first.

Get Neovim running on your OS

Does Neovim work on Windows? It does, through Scoop, Chocolatey, or an MSI installer (a standard Windows Installer package). On other systems, pick the command for yours:

  • Debian and Ubuntu: sudo apt install neovim
  • Arch: sudo pacman -S neovim
  • Fedora: sudo dnf install neovim
  • Homebrew: brew install neovim

Check your version with nvim --version and compare it to the minimum LazyVim lists in its docs.

Here’s the catch: distro repos often ship old Neovim. Picture a Fedora user on a ten-year-old ThinkPad whose repo version is too old.

An AppImage (a single portable file you run without installing) takes minutes to try and saves a confusing debugging session later. Ubuntu users can also try a PPA (Personal Package Archive, an extra software source) for a newer build.

A terminal shows an outdated Neovim version while a new AppImage file downloads to replace it.

Command line tools you’ll need

Most of these are one package install away:

  • git and curl: git downloads your plugins, and curl handles downloads.
  • ripgrep and fd: fast search tools behind file and text searches.
  • fzf: a fuzzy finder that matches loose, partial typing, so cfg can find config.lua.
  • lazygit (optional): a terminal interface for git.
  • tree-sitter-cli and a C compiler: tree-sitter parses your code for highlighting, and a C compiler builds its parsers.

Set up a Nerd Font for icons

LazyVim’s interface shows Nerd Font icons, which are regular programming fonts with extra symbols added. Download one, then install it like any other font: double-click it on Windows or macOS, or copy it to your user fonts folder on Linux.

Next, set your terminal to use that font. Skip that and missing icons show up as squares. One setting, and the squares are gone.

What your terminal needs to support

True color (24-bit color, so apps can show every shade a theme uses) and undercurl (wavy underlines Neovim uses for errors and warnings) are the features to look for.

The question isn’t whether a terminal looks sharp, but whether it can actually draw your theme’s colors. Good options include kitty, WezTerm, Alacritty, and Ghostty.

If colors look flat or underlines come out straight, your terminal is the first suspect. Check it before you blame Neovim.

Installing the LazyVim Starter

LazyVim ships as a starter config, a ready-made set of files you copy into place and then make your own. Start with a backup, since the install is mostly about keeping what you already have.

Back up your current config first

Rename your existing Neovim config rather than deleting it. On Linux, that’s the ~/.config/nvim folder:

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

Optionally, back up the share, state, and cache folders too (~/.local/share/nvim, ~/.local/state/nvim, and ~/.cache/nvim). Consider a terminal dweller who spent two years tuning keymaps.

If the starter doesn’t suit them, one mv brings their old setup straight back.

Windows paths differ, though. If you’re on Windows, your config lives in your LOCALAPPDATA folder at %LOCALAPPDATA%\nvim, not under ~/.config, so rename that folder the same way.

Clone the starter repo into place

Run git clone against the LazyVim/starter repo and point it at ~/.config/nvim, where Neovim looks for its config. On Windows, the target is %LOCALAPPDATA%\nvim instead.

This is a replacement, not a merge. Since the old config is already moved aside, the target folder should be empty or missing.

Delete .git so the config is yours

The clone includes a hidden .git folder that links the copy to the starter’s history. Remove it:

rm -rf ~/.config/nvim/.git

Now the folder is just your files. A hyprland user who keeps dotfiles in their own repo can track this config alongside everything else, without a second git history getting in the way. On Windows, remove %LOCALAPPDATA%\nvim\.git the same way.

A dark-themed illustration shows a folder labeled nvim being severed from a git history chain by scissors, leaving it isolated and glowing.

What happens on first launch

Run nvim to trigger the install. The first launch does the rest:

  • Plugin sync. Your plugins download and install automatically.
  • Treesitter parsers. Treesitter is the engine that helps Neovim understand code structure, and its parsers install too.
  • LSP servers. A language server protocol (LSP) server gives each language its completions and error checks, and these install as well.
  • The dashboard. Once everything’s done, the dashboard appears.

Picture a student setting up a ten-year-old ThinkPad on a train with patchy Wi-Fi. Let the first launch run to the end, since the dashboard is your signal. Once it appears, you’re in.

Check Your Setup and How to Exit

Before you customize anything, we’ll confirm the basics work. We’ll check your language server and how to get out of Neovim.

Test whether language servers work

A language server powers smart features like autocomplete. To test it, run nvim test.js and type a few lines of JavaScript, such as const greeting = 'hello'; followed by console. on a new line.

An autocomplete menu should pop up as you type. If nothing shows up, LazyVim may prompt you to install the JavaScript language server, so accept and try again. If something still seems off, run :checkhealth to see what’s working and what’s missing.

Someone on a fresh Arch install, for example, can confirm JavaScript works before starting a real project. You’re checking that it works, not just that it’s installed.

Quit Neovim and get unstuck

Quitting trips up a lot of first-timers, so learn these first:

  • :q quits when you haven’t changed anything.
  • :wq saves your changes and quits.
  • Space + qq uses LazyVim’s quit shortcut.

Press Esc before any of these. It returns you to normal mode, where commands work. In insert mode, typed letters just become text. Stuck? Press Esc once or twice, because it’s your reset button.

Tips for what comes next

  • Learn the basics gradually. Pick up a few commands at a time rather than memorizing everything.
  • Expect a steep early learning curve. The first few sessions will feel clumsy, and that’s normal. Stick with it.
  • Survival commands come next. Learn a short list for saving, quitting, and returning to normal mode.

Using LazyVim Day to Day

Once LazyVim is running, most of your day comes down to a handful of keys. Here’s what you’ll lean on most.

Press Space to see your shortcuts

Space is the default leader key, the starting point for LazyVim’s shortcuts. Press it and a menu shows the keymaps available right now. It’s less about memorizing bindings and more about finding them.

Consider a homelabber who knows they want to open a file but can’t recall the key. They tap Space, scan the menu, and carry on.

Finding files and searching text

  • Explorer: Space+e opens it.
  • Dashboard: Find File sits right on the start screen.
  • Fuzzy search: type a rough name to find matching project files.
  • Recursive text search: looks inside every file in the project, subfolders included.

Picture a waybar tinkerer whose bar stopped loading after one tweak. They can’t remember which file holds the broken line, so they run a text search for the module name and jump straight to it.

A coder uses a search tool in a dark code editor, highlighting a specific file line with amber and teal accents.

Manage git changes from the editor

Space+g+g opens lazygit, a terminal interface for git, so you can review and commit without leaving the editor. The git diff hunks menu lists each changed chunk of lines, or hunk, in the file you’re on.

Stage and commit with keys, so the work is less about switching tools and more about staying in one.

Think of a fresh-install tweaker who edits a palette file, checks the hunks to confirm the colors changed, then commits before closing the laptop.

Run code and move between panes

  • Built-in terminal: Ctrl-/ opens one right inside the editor.
  • Pane movement: Ctrl-h, Ctrl-j, Ctrl-k, and Ctrl-l shift focus between split sections of the screen, left, down, up, and right.
  • In-editor runs: you can edit and run code without leaving LazyVim.

Imagine a self-hoster fixing a backup script. They edit it in one pane, run it in the terminal beside it, and bounce between the two with Ctrl-h and Ctrl-l. Editing, running, and committing, all in one place.

Changing LazyVim to Suit You

Once LazyVim runs, you’ll want it to fit your desktop. Here’s where the settings live and what to tweak first.

Where each config file lives

  • lua/config: LazyVim’s defaults. Your changes go alongside them.
  • init.lua: the entry point Neovim reads first.
  • lua/plugins: where you add your own plugins.

The comments inside these files explain what each part does, so read them before you edit.

How do I install a vim plugin? Add a plugin spec in lua/plugins, restart Neovim, and Lazy, the plugin manager LazyVim is built on, installs it. Updating and uninstalling work through Lazy too. Want language support?

Run :LazyExtras to switch on the language extras you need.

Simple tweaks to try first

Start small, since tiny changes are easy to undo. Changing the colorscheme is the quickest win: edit the line that sets it, restart, and look. Picture a Hyprland user matching the editor to their rice.

They try two colorschemes, compare them in a split, and keep the one that’s easier on their eyes at 2am.

Relative line numbers count from your cursor, not from the top of the file, so motions like 5j are easy to read. Toggle them with the relativenumber setting in options.lua, which holds everyday preferences like this one.

To match your desktop palette, pick a colorscheme whose colors line up with your bar and terminal. Your editor stops looking like a guest.

You now have Neovim, its dependencies, and LazyVim running, along with the Linux fixes for package versions, fonts, and terminal setup that keep it looking right.

Matching the theme to your desktop palette is the final touch, so your editor fits right in with everything else on your screen.

Your editor should feel like it belongs to you, and it should still launch cleanly tomorrow.

Questions

How do I set up Neovim?

Install Neovim using your operating system’s package manager or installer, then check it with `nvim --version` and confirm it meets LazyVim’s minimum version. To set up LazyVim, back up any existing config, clone the LazyVim starter into Neovim’s config directory, remove the starter’s `.git` folder, and launch `nvim` to install its plugins and other components.

How do I install a vim plugin?

With LazyVim, add a plugin specification in `lua/plugins` and restart Neovim. Lazy, the plugin manager, will install it; you can also use Lazy to update or remove plugins.

Does nvim work on Windows?

Yes. Neovim works on Windows, where you can install it with Scoop, Chocolatey, or an MSI installer.

Where is the nvim config on Windows?

Neovim’s configuration folder on Windows is `%LOCALAPPDATA%\nvim`. You can enter that path in File Explorer or use it in commands to access the config.