Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

S1M0N38/pibuf.nvim

Open more actions menu

Repository files navigation

≡  pibuf.nvim  ≡

CI badge LuaRocks badge GitHub badge

pibuf.mp4

Mininal nvim config for Pi agent


💡 Idea

When you press Ctrl-G in the Pi coding agent, Pi writes your prompt to a temp file and opens it in $VISUAL. pibuf.nvim detects that buffer (filetype pi) and adds two buffer-local pickers:

  • <C-f> — pick a project file and insert an @<path> mention.
  • <C-s> — pick an installed Pi skill and insert a /skill:<name> reference.

⚡ Requirements

📦 Installation

Install using lazy.nvim:

{
  "S1M0N38/pibuf.nvim",
  version = "1.*",
  dependencies = {
    "folke/snacks.nvim",
    -- "nvim-telescope/telescope.nvim",
    -- "ibhagwan/fzf-lua",
    -- "nvim-mini/mini.pick",
  },
  opts = {
    picker = "snacks",
    -- picker = "telescope",
    -- picker = "fzf-lua",
    -- picker = "mini.pick",
  },
}

opts = {} lets lazy.nvim auto-call setup(), which registers the pi filetype detection and the picker keymaps. No manual setup() call needed.

For development, see CONTRIBUTING.md.

🚀 Usage

  1. Press Ctrl-G in Pi — pibuf sets the buffer filetype to pi.
  2. Edit the prompt:
    • <C-f> opens a file picker (project root); confirm to insert @<path>.
    • <C-s> opens a skills picker; confirm to insert /skill:<name>.
  3. :wq / ZZ to send the edited prompt; :cq to cancel and keep the original.

Run :checkhealth pibuf to verify your setup. Read the full docs with :help pibuf.

About

≡ Mininal nvim config for Pi agent

Resources

Contributing

Stars

Watchers

Forks

Releases

Contributors

Languages

Generated from S1M0N38/base.nvim
Morty Proxy This is a proxified and sanitized view of the page, visit original site.