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

Support disabling mappings #39

Merged
merged 2 commits into from
Mar 20, 2023

Conversation

binyomen
Copy link
Contributor

Currently there is no way to disable default mappings. The best you can
do is use some unlikely key combinations on the left-hand side so that
defaults like gnd don't get used.

This change allows using false to disable mappings, which is a common
pattern in other Lua plugins.

Copy link
Member

@theHamsta theHamsta left a comment

Choose a reason for hiding this comment

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

Thank you!

Currently there is no way to disable default mappings. The best you can
do is use some unlikely key combinations on the left-hand side so that
defaults like `gnd` don't get used.

This change allows using `false` to disable mappings, which is a common
pattern in other Lua plugins.
@theHamsta theHamsta enabled auto-merge (rebase) March 20, 2023 23:41
@theHamsta theHamsta merged commit 1d7d049 into nvim-treesitter:master Mar 20, 2023
@binyomen binyomen deleted the disable_mapping branch March 20, 2023 23:44
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.

None yet

2 participants