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

This $600 Keyboard's Best Feature Is Also Its Biggest Flaw I always felt like my keyboard was missing something. First, it was the ergonomic split that my wrists craved. Then, when I got my Moonlander, it was the awkward reach for crucial keys (what's up with that thumb cluster ZSA?). Until one day, I stumbled upon a keyboard that seems similar, but is very much different: the Dygma Defy, a keyboard that promised to turn my thumbs into power users. The Defy arrived like a treasure chest....

THIS Is The Terminal For People Who Just Want Things To Work Picture this: You're watching a skilled developer, one that you value their skills, repeatedly hitting the up arrow key, hunting for that command they used yesterday. Then, another senior, pops up three different default terminal windows just to show you their process running, while sending requests from the other, instead of simply splitting their terminal screen. Sound familiar? That's the reality for the vast majority of terminal...

I Just Unlocked MacOS GOD MODE With Hammerspoon Ever felt like your Mac is an overprotective parent, constantly limiting what you can do? Can't open any downloaded app, can't control your own notifications, can't do anything that isn't strictly within the boundaries dictated by Apple... I just discovered a power tool that hands you the keys to the kingdom – Hammerspoon, a decade-old but criminally underrated Mac automation tool that lets you bend macOS to your will with simple Lua scripting....