This Neovim "Plugin" Replaces 40 Others


This Neovim "Plugin" Replaces 40 Others

You know the feeling of finding a new improvement to your setup that you KNOW is going to change it completely?

"Imagine living your entire life carrying heavy loads on your back dragging things through the road thinking: `well that's just how it is`"
- Homo sapiens, before the invention of the wheel

That's exactly what coding without mini.nvim feels like once you've experienced its power, especially if you're Neovim setup was closer to vanilla.

Most Neovim users spend years curating their perfect setup (I know I did), carefully selecting plugins for each specific need - text objects, surround functionality, file management, motions and more.

It's a meticulous process of finding, configuring, and maintaining dozens of different plugins. Then getting used to the new system (or not), and going back through the same loop.

While this approach works, it creates a fragile ecosystem where updates can break things, plugins conflict with each other, and your config files grow increasingly complex, and, sometimes extremely bloated for no good reason.

Mini.nvim is different

Instead of collecting various plugins from different authors with different philosophies, it provides a cohesive suite of tools that work seamlessly together - while many frameworks and tools claim to do just that, with mini.nvim this is 100% the case. It's text objects play nice with motions and functionality introduced by all other plugins within its library (mini.operators is one great example).

Its AI module (no, not THAT AI; but "around/inside" text objects) introduces intuitive motions that let you manipulate code with unprecedented precision. Want to change everything inside the next quote? vinq ("visual selection inside next quotes"), gets you there.

Need to swap two function parameters?

The exchange operator gx makes it trivial, hit your source word with `gxiw` and then again on your target word for replacement (or, even better - use the dot operator to repeat the last action - something applied with all mini plugins!), and just like that - the words will exchange places. I can't tell you how much I've been using this one motion ever since coming across mini on a vimconf talk by its creator.

The surround module integrates perfectly with these text objects, (and replaces yet another tpope plugin), while mini-files gives you a powerful file manager that feels like it was always part of Neovim.

To get started with mini.nvim, begin with its core modules: mini-ai for text objects, mini-surround for wrapping text, mini-bracketed for improved bracket based motions, and mini-files for file management. Install them through your favorite package manager (Lazy works great), and gradually explore its other capabilities as you get comfortable.

Don't feel pressured to use all 40+ modules at once - the beauty of mini.nvim is that each piece works perfectly fine on its own, while unlocking extra power when used together. Your coding workflow will thank you.


One cool project I came across with recently:


Thank you for reading! Feel free to reply directly with any question or feedback.
Have a great weekend!

ESPRESSO FRIDAYS

Every once in a while I send hand picked things I've learned. Kind of like your filter to the tech internet. No spam, I promise!

Read more from ESPRESSO FRIDAYS

You’ve Never Seen a Shell Like Xonsh This issue is brought to you by: Redis Iris: Your agents should be getting smarter Unreliable agents fail in production. Redis Iris is a unified, real-time context engine that delivers fresh, relevant context so agents perform at scale. Try for FREE Tell me if this sounds familiar:You start with a quick shell script. Then one step gets annoying, so you call Python. Then Python needs to shell out again. Then you’re parsing strings, juggling quoting, and...

Stop Renting SaaS. Build Your Own Cloud. This issue is brought to you by: Security, Performance, Simplicity. Pick Three. Twingate delivers an identity-based access for users, services, and AI agents that deploys in minutes, scales to every resource, and finally lets you retire your VPN. Try Twingate - it's FREE! -> Why pay cloud companies when you can just… not? I’ve recently started running my own services at home, because.. honestly? I’m tired of paying cloud providers for things I can run...

This Tool Replaced 7 CLIs (and killed my opensource) This issue is brought to you by: Depot: Build faster. Waste less time. Accelerate your Docker image builds and GitHub Actions workflows. Easily integrate with your existing CI provider and dev workflows to save hours of build time. Get started for free -> I’ve been in the terminal for 12 years. I don’t get surprised often. Then I found Television, and I was wrong about it before I even opened it. The friction of endless pipes ||| There’s a...