feat: expose preview action mappings #128

Merged
barrettruth merged 3 commits from feat/plug-mappings into main 2026-07-24 18:29:00 +00:00
Owner

Problem

preview.nvim exposes commands and Lua functions for its interactive actions, but users cannot bind those actions through stable <Plug> targets. Configurations must currently repeat command strings or callbacks and couple physical keys directly to the implementation.

Solution

Expose normal-mode <Plug> mappings for toggling, one-shot compilation, opening generated output, inspecting compiler output, and cleaning artifacts. The mappings dispatch through the public Lua API, define descriptions without claiming physical keys, and are documented as the supported key-mapping interface.

## Problem preview.nvim exposes commands and Lua functions for its interactive actions, but users cannot bind those actions through stable `<Plug>` targets. Configurations must currently repeat command strings or callbacks and couple physical keys directly to the implementation. ## Solution Expose normal-mode `<Plug>` mappings for toggling, one-shot compilation, opening generated output, inspecting compiler output, and cleaning artifacts. The mappings dispatch through the public Lua API, define descriptions without claiming physical keys, and are documented as the supported key-mapping interface.
feat: expose preview action mappings
All checks were successful
quality / Test (pull_request) Successful in 12s
quality / Lint (pull_request) Successful in 13s
quality / Format (pull_request) Successful in 15s
ec670f93f9
docs: keep mapping details in vimdoc
All checks were successful
quality / Test (pull_request) Successful in 5s
quality / Lint (pull_request) Successful in 6s
quality / Format (pull_request) Successful in 10s
73294fb376
refactor: inline preview mappings
All checks were successful
quality / Test (pull_request) Successful in 5s
quality / Lint (pull_request) Successful in 6s
quality / Format (pull_request) Successful in 9s
26830ed4b1
barrettruth deleted branch feat/plug-mappings 2026-07-24 18:29:00 +00:00
Sign in to join this conversation.
No description provided.