Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve plugin[mappings] prefix value at initialization time #168

Open
dbarnett opened this issue Feb 25, 2016 · 0 comments
Open

Resolve plugin[mappings] prefix value at initialization time #168

dbarnett opened this issue Feb 25, 2016 · 0 comments

Comments

@dbarnett
Copy link
Contributor

Plugins that provide default mappings generally configure a default mapping prefix like <leader>= and then take a boolean value for plugin[mappings] as a shortcut for that prefix. For instance

Glaive codefmt plugin[mappings]

is a shortcut for

Glaive codefmt plugin[mappings]='<leader>='

But in the first shortcut form the default prefix isn't introspectable (:Glaive codefmt shows a value of {'mappings': 1} instead of {'mappings': '<leader>='}). We should add a hook to resolve it immediately so it's introspectable.

Related: When overriding the plugin[mappings] value, we could immediately create new mappings at that prefix, and possibly clean up any old ones we can detect as automatically created by the plugin at the old prefix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant