AI · beta · Neovim 0.9+ · 127 commits
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.
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 = {},
} 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.
Documentation
Recent commits
- 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