Skip to content

Zero-friction install: bare spec works; applied mappings activate instantly - #20

Merged
ActualLearner merged 1 commit into
mainfrom
zero-friction-setup
Aug 24, 2026
Merged

ActualLearner merged 1 commit into
mainfrom
zero-friction-setup

Conversation

@ActualLearner

Copy link
Copy Markdown
Owner

What

Removes the two biggest install friction points:

  1. Auto-setup: plugin/keycoach.lua sources on load, so a bare spec — { "ActualLearner/keycoach.nvim" } — is the complete install. The plugin stays inert until consent (fresh-install spec behavior preserved).
  2. Self-loading mappings file: KeyCoach loads its mappings file itself — on setup when consent exists, and immediately after every apply. An accepted recommendation is a live mapping in the same session; no dofile snippet in the user's config, ever.

The apply notification now says "Appended and active: …" instead of asking users to wire the file into their config. README and help doc reduced to a one-line install.

Test plan

  • 96 tests pass, StyLua clean. Smoke specs updated: applied mappings are now asserted active via maparg, and tests clean up real mappings (correct new behavior — applies are live).
  • Verified in a real headless nvim: bare setup → apply → maparg('<leader>t', 'n') returns the rhs; :checkhealth keycoach green on the bare setup.

A bare plugin spec ({ 'ActualLearner/keycoach.nvim' }) now works end to
end: plugin/keycoach.lua auto-setups with defaults, and the plugin stays
inert until consent, matching the fresh-install spec.

KeyCoach now loads its own mappings file: on setup when consent exists,
and immediately after every apply, so an accepted recommendation is a
live mapping in the same session — no config wiring required. The
'Add dofile(...) to your config' hint is gone; the apply notification
says the mapping is active.

README and help doc reduced to a one-line install.
@coderabbitai

coderabbitai Bot commented Aug 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 24e81e60-21b9-4e6a-98c0-5fa934b3d747


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ActualLearner
ActualLearner merged commit ec48e6c into main Aug 24, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant