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

Kubernetes - Does It Live Up to the Hype? Twelve years ago, I landed my first DevOps role. I was a junior engineer, responsible for infrastructure and security at a startup (yeah, not the best call on their behalf), that would later become a unicorn. One evening, our CEO landed the first huge client, and we had 24 hours to prepare. I panicked. I spun up extra servers, scaled out load balancers, and froze every scale-down rule I could find to make sure we overkill this and that I'm not the...

Neovim from Scratch to BEAST Mode It took me 12 months to make Neovim look like a worthy code editor. This was 9 years ago. Today, with one small installation you get fuzzy pickers, LSPs, text objects, debuggers and MORE. Honestly, if you have the Vim basics and would like a quickstart Neovim pre-baked with everything you need, there's almost no need to make an effort, thanks to distributions like LazyVim. The traditional approach to Neovim setup has always been a rite of passage - slowly...

7 Amazing API Tools You Need To Try Before becoming a systems architect working with unicorns, I made a mistake that cost my team three days of debugging. I hardly left the office for 48 hours, and that experience taught me a valuable lesson. I thought I knew everything about HTTP requests. Having used curl for years, writing APIs, and building integrations, I felt confident. Then came the incident Our back-office application was failing, and we couldn’t help with burning customer requests. I...