Skip to content

docs: fix default mappings function name in examples: api.map.on_attach.default#3269

Merged
alex-courtis merged 1 commit intomasterfrom
doc/fix-default-mappings
Feb 15, 2026
Merged

docs: fix default mappings function name in examples: api.map.on_attach.default#3269
alex-courtis merged 1 commit intomasterfrom
doc/fix-default-mappings

Conversation

@devansh08
Copy link
Copy Markdown
Collaborator

The function name mentioned in the docs for default mappings is incorrect. api.map.on_attach.default itself points to keymap.on_attach_default here, and so the correct function call (which works as well) should just be api.map.on_attach.default(bufnr).

Thanks!

Copy link
Copy Markdown
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for finding and quickly fixing @devansh08 !

@alex-courtis alex-courtis changed the title docs: fix default mappings function name docs: fix default mappings function name in examples: api.map.on_attach.default Feb 15, 2026
@alex-courtis alex-courtis merged commit 516f95e into master Feb 15, 2026
5 checks passed
@alex-courtis alex-courtis deleted the doc/fix-default-mappings branch February 15, 2026 22:48
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.

2 participants