buffer-ctx.nvim
Everything the current buffer already knows about itself, as text you can insert or copy: its path, its Lua module name, the line you are on, a timestamp, a UUID, an annotation, a boilerplate header.
- status
- beta — Beta stage — active development. This repository is past its first shape and in active use, but the surface is not frozen: breaking changes are still possible. Pin a commit or tag if you depend on it.
- category
- AI
- neovim
- 0.9+
- repo
- github.com/StefanBartl/buffer-ctx.nvim
- commits
- 127
- help
- :help buffer-ctx
demo
demos/buffer-ctx.tape in a clean Neovim — re-recorded weekly
what is shown when
- :Insert location - path:line, at the cursor
- :Insert timestamp - and date, env, uuid, linecount ...
- :Insert uuid - a v4 uuid where you type
- :Insert linecount - and filename, filepath, module ...
install
{
"StefanBartl/buffer-ctx.nvim",
opts = {},
} docs/
- BINDINGS.md
- CONTRIBUTING.md
- README.md
- WORKFLOW.md
- api.md
- architecture.md
- around-it.md
- commands.md
- configuration.md
- health.md
- installation.md
- keymaps.md
- quickstart.md
git log
- feat insert: :Insert mdlink puts the cursor into the inserted link
- feat notify: request popup delivery explicitly in buffer-ctx.nvim's notifier
- fix filepath: share root-matching between nvim/repos/env modes
- feat filepath: add env mode, folds $REPOS_DIR/$NVIM_CONFIG_DIR into $VAR
- refactor commands: rename markdownlink subcommand to mdlink
- docs link back to the wkd family site
- fix reveal: guard open.nvim's browser handler call with pcall
- feat commands: add markdownlink/imagepaste cross-plugin shims to :Insert/:Copy
- feat reveal: add :RevealInFm / :OpenInBrowser for the current buffer
- feat filepath: add repos mode, relative to REPOS_DIR
- feat git: swap own systemlist shellout for lib.nvim.git (GS-14)
- ci bump JohnnyMorganz/stylua-action to v5 (Node-20 deprecation)