---
title: "Neovim Setup"
description: "Minimal setup to start configuring neovim"
author: "Angel Rada"
lang: en
url: https://radagva.dev/posts/nvim-01-setup
publishedAt: 2026-06-27T07:02:00.000Z
modifiedAt: 2026-06-28T18:37:47.000Z
tags: ["Terminal","cli","god"]
translations:
  es: https://radagva.dev/es/posts/nvim-01-setup.md
---

# Neovim Setup

## Neovim File Structure

For modern versions, Neovim looks for its configuration in `~/.config/nvim/`. The main entry point is now `init.lua` instead of the old `init.vim`.

A recommended folder structure to keep things organized:

```text
~/.config/nvim/
├── init.lua
└── lua/
    ├── core/
    │   ├── options.lua  (Global settings)
    │   └── keymaps.lua  (Your keyboard shortcuts)
    └── plugins/         (Plugin configuration)
```

## Your first `init.lua`

Start with these basic lines to notice the difference immediately:

```lua
-- Set the leader key to spacebar
vim.g.mapleader = " "

-- Basic settings
local opt = vim.opt
opt.number = true         -- Show line numbers
opt.relativenumber = true -- Relative numbers for fast jumps
opt.shiftwidth = 4        -- Indent size
opt.expandtab = true      -- Convert tabs to spaces
opt.termguicolors = true  -- True color support
```
