-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix missing <buffer> for debug mappings #1696
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1696 +/- ##
==========================================
+ Coverage 19.7% 19.72% +0.01%
==========================================
Files 57 57
Lines 4735 4746 +11
==========================================
+ Hits 933 936 +3
- Misses 3802 3810 +8
Continue to review full report at Codecov.
|
Thanks for your PR! Could you explain what issue this fixes? Right now I can do:
To place a breakpoint in both Does this fix a specific error or issue? If so, then we should probably fix that, instead of making the mappings buffer-local. |
I have fixed that issue since my first PR was incomplete. I think that a plugin should not override GLOBAL mappings. This PR fixes this issue. |
Thanks. The issue with this is that the mappings are, well, only available in the buffer. For example with I think a better fix is to not map stuff if it's already mapped:
Or only map the F-keys if it's not mapped to something else already:
We could perhaps also add an option:
You can then add I don't mind making a patch, but can't really decide which option is best here. |
Making them optional with |
Hmm, my patch (second commit) works fine in my environment. However, if it does not work properly, I believe it is a good idea to prepare a variable such like |
Hm, maybe I tested it wrong, but when I tried it, it didn't seem to work. I will look again later. |
Okay, does seem to work. Dunno what I did wrong previously. Should still make it configurable in the future. I'll make an issue for that, but this improves things so I'll merge it as well. Thanks 👍 |
No description provided.