The Cursor Experience, With Neovim's Magic


The Cursor Experience, With Neovim's Magic

This issue is brought to you by:

Auth0 lets you authenticate
25,000 users for free!

The line between human and AI-assisted coding is becoming increasingly blurred.

While VS Code (oh my god I mentioned it) users have been enjoying AI assistance through GitHub Copilot or better yet, “switching” to it’s popular fork - Cursor AI, which creates an “immersive” coding experience by literally having a conversation with the code base.

With all the Cursor craze, many Neovim users have felt left out.

Some covered it by saying it "defeats the purpose", as if an amazing text editor, can't benefit a code generation plugin.

While many plugins do help bringing AI to Neovim users, it never was the cursor experience.

All of that is changing with Avante, a plugin bringing Cursor-like capabilities to the Neovim ecosystem.

Avante (Spanish for “ahead”) transforms Neovim into a real AI-integrated development environment that maintains the efficiency of vim’s phenomenal text editing features, while adding natural language code generation UX.

Instead of switching between multiple tools or suffering through mouse-dependent interfaces (😷), Neovim users can now access Cursor-like assistance without leaving their environment.

What sets Avante apart is its context-aware capabilities. While traditional AI coding assistants often work in isolation, Avante can understand your entire codebase through its (warning: experimental!) @codebase feature (more on that here). This means you can ask it to suggest improvements or generate code with full awareness of your project’s structure and dependencies.

The plugin supports multiple AI providers (with Claude as the default) and can handle everything from creating new projects from scratch, to implementing complex features like authentication flows like I’ve done in this video.

Getting started with Avante is pretty straightforward:

  1. Install via your preferred package manager (lazy.nvim supported)
  2. Configure your AI provider API key. Using Claude? This can be somewhat confusing, you can generate keys from Anthropic’s dashboard.
  3. Access AI assistance through commands like ‘Avante ask’ (:Avanate <tab> to see all the options avante provides)
  4. Review and accept/reject suggestions using familiar Vim commands. This process has two steps -
    1. The generated code and explanations are presented in markdown format, which you can either review and accept one by one, or simply take the entire thing.
    2. Once accepted (all or some of) the changes, it’ll then be presented as a pull request, kind of like the ones you’re used to seeing on Github. Then, there’s a second step of accepting or rejecting code.

Give Avanate a go and play around with it. I let it build things from scratch and was quite amazed at what I can achieve by simply “speaking” to my editor…

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...