Skip to content
← Back to projects

Inner Around Nvim

Inner Around.nvim

#inner-around.nvim

Follow on X Subscribe on YouTube

A lightweight, simple, and dependency-free Neovim plugin written in Lua that provides text objects for Inner (if) and Around (af) functions without relying on Treesitter.

It uses native Vim movements ([[, ]], etc.) to quickly select or operate on function bodies and structures.


#🚀 Features

  • if (Inner Function): Selects everything inside the function braces ({ ... }), automatically trimming the top and bottom whitespace lines.
  • af (Around Function): Selects the entire function block, including the function signature (public function name(), class, etc.) and the braces.
  • Smart Lookahead: If your cursor isn't directly on a function block when you press af, it automatically searches forward for the next one.
  • No Treesitter required: Perfect for lightweight setups or languages where Treesitter isn't fully configured.

#📦 Installation

vim.pack.add({
	"https://github.com/janecodelife/inner-around.nvim",
})

require("inner-around").setup()

#Video 📺

make_http_request_in_blink_without_leaving_buffer-video

or in


#⌨️ Mappings

The plugin maps text objects in both Visual (x) and Operator-pending (o) modes.

Keymap Mode Description
vaf Visual Select around the function
vif Visual Select inside the function
daf Operator Delete around the function
dif Operator Delete inside the function
yaf Operator Yank (copy) around the function
yif Operator Yank (copy) inside the function
caf Operator Change around the function
cif Operator Change inside the function

#If Have A Question🤝 (Contact Me)

I will be there i am answer to all messages


#🔗 My Other Plugins

Check out my other open-source tools to supercharge your Neovim environment:


#Upcoming 🚀 (Stay Tuned!)

#The Ultimate Neovim Config for Modern Web & Laravel Devs ⚡

I am currently cooking a comprehensive guide and boilerplate configuration on How to turn Neovim into a (Powerful) IDE explicitly optimized for:

  • Backend & Frameworks: PHP (Intelephense) & Full Laravel & Livewire Integration (With Preformance)
  • Frontend & Tooling: HTML, CSS, JavaScript, TypeScript, and Livewire SFCs
  • Speed: Blazing fast autocompletion, lightning-speed code navigation, and fuzzy finding.

New version available.