nemanjamalesija

Context-aware paste indentation for Neovim. Pasted code lands at the correct indent level, every time, in every language.

88
1
100% credibility
Found Feb 10, 2026 at 54 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Lua
AI Summary

A helper tool for the Neovim text editor that automatically adjusts spacing when pasting code so it matches the surrounding lines perfectly.

How It Works

1
🔍 Discover Smart Paste

While looking for ways to fix messy code pasting in your text editor, you find Smart Paste on GitHub.

2
📱 Watch the Demo

You see a short video showing how pasted code instantly lines up perfectly with your existing code.

3
📥 Add to Your Editor

You copy a few simple lines into your editor's settings to include Smart Paste.

4
🔄 Restart Your Editor

You close and reopen your editor, and Smart Paste turns on automatically.

5
Paste Code Magic

Now when you copy code from anywhere and paste it with your usual keys, it snaps to the perfect spot with matching spaces.

6
👍 Use It Every Day

Pasting snippets feels effortless, and everything stays neatly organized without manual fixes.

🎉 Perfect Code Flow

Your coding sessions are smoother and frustration-free, with all pasted code looking professional right away.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 54 to 88 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is smart-paste.nvim?

This Neovim plugin delivers context-aware copy paste for code, ensuring pasted snippets land at the correct indent level every time, across any language. Built in pure Lua with zero dependencies, it intercepts standard paste keys like p, P, gp, and gP, plus new ones like ]p and [p for charwise content turned into indented lines. No more manual fixups—your buffer's indentation settings handle the rest automatically.

Why is it gaining traction?

It stands out with seamless integration: dot-repeat works flawlessly, pastes count as one undo step, and visual mode replacements stay smart without touching registers. Developers love the three-tier context-aware indentation that picks indentexpr, treesitter scopes, or heuristics without config. In a sea of Neovim plugins, its zero-config reliability for everyday code pasting hooks multi-language coders tired of misalignment.

Who should use this?

Neovim users pasting code from docs, logs, or snippets daily—think backend devs gluing API handlers, Lua scripters in embedded projects, or anyone juggling Python, JS, and Rust files. Ideal for those relying on treesitter for syntax or custom indentexpr setups, skipping it in excluded filetypes like prose-heavy markdown.

Verdict

Grab it if paste indentation bugs your workflow—43 stars and 1.0% credibility score signal early maturity, but solid docs and CI make it low-risk for lazy.nvim users. Test in a session; it's plug-and-play worth keeping.

(178 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.