Three Lines and a Git Clone: How My Whole Config Boots
The plugin manager installs itself before anything else exists to do the job, and the one line of a common disable-list snippet I didn't copy.
My init.lua is three lines long. Not three lines plus a bunch of stuff I'm not counting, actually three:
require("core.options")
require("core.keymaps")
require("core.lazy")
Options, keymaps, then hand off to the plugin manager. Everything else, every one of the thirteen LSP servers, the completion engine, the git integration, all of it, lives somewhere downstream of that third line. I like that the entry point reads like a table of contents instead of a config file.
The part that actually does work is core/lazy.lua, and it opens with something that surprised me the first time I really read it: the plugin manager installs itself.
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git", "clone", "--filter=blob:none",
"https://github.com/folke/lazy.nvim.git",
"--branch=stable", lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
Fresh machine, no lazy.nvim on disk yet, fs_stat comes back nil, and the config clones its own plugin manager before it does anything else. Every other plugin gets installed by lazy.nvim once it's running. lazy.nvim gets installed by four lines of raw git and vim.fn.system, because at that point nothing else exists yet to do the job. It's the one piece of the whole setup with no dependency to lean on.
Once that's running, defaults = { lazy = true } sets the tone for everything after it. Nothing loads at startup unless it says otherwise, every plugin declares its own trigger, an event, a command, a keymap, and waits.
There's also a shortlist of Neovim's built-in plugins turned off for startup speed, gzip, netrw, tarPlugin, and a couple others, which is a common enough snippet to copy from someone else's config. What isn't common is the comment sitting right above it about the two things deliberately left off that list: matchit and matchparen stay on, because matchit is what teaches % to jump between if and end, not just matching brackets, and nothing else here does that job. Copying the disable list wholesale would have quietly broken a keybinding I use constantly, for a startup saving I'd never have noticed.
The whole thing is maybe sixty lines before a single plugin loads. Most of what makes it feel solid isn't cleverness, it's just not copying the parts of other people's configs I didn't actually understand.
About the author
- I'm Sushanth, a high school senior in Hyderabad, India. This is where I write about the things I spend time on: learning from mistakes, building things in code, and the tools I actually work with day to day. I hold the Candidate Master title and a FIDE International Master norm, earned across roughly 140 rated tournaments in six countries. I stopped competing in 2025, but the habit competition taught me, sitting down after every loss and figuring out exactly where I went wrong, shapes how I approach everything else. On the technical side, I've gone deep on C/C++ through Duke University and University of London coursework. I'm also someone who likes a good terminal workflow and enjoys exploring (and abandoning) productivity tools. Expect posts on Neovim, tmux, what broke this week, and whatever I'm tinkering with.
Comments
Join the discussionNo comments yet. Be the first to comment.
Terminal Diaries
Neovim, tmux, and terminal setup notes — what I'm running, why, and what I ripped out a week later.

