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

feat: add 'map_custom_bs' option #431

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LexeyKhom
Copy link

Problem: Some users (like me) use a custom bs key.

@windwp
Copy link
Owner

windwp commented Feb 19, 2024

that function is public . i think you can add this on your config.

@LexeyKhom
Copy link
Author

Yes, I did that before. The real problem is that the API can change (as it did recently) and I'm a little lazy to get into the code every time... :)

In general, the solution seems simple, but I spent more than an hour before arriving at it. At first I tried to write my own callback, but it didn't work out very well

@Sam-programs
Copy link
Contributor

You could make your mapping call the remapped backspace, with remap = true

vim.keymap.set('i','<custom-bs>','<bs>',{remap = true})

@LexeyKhom
Copy link
Author

You could make your mapping call the remapped backspace, with remap = true

vim.keymap.set('i','<custom-bs>','<bs>',{remap = true})

Yes, that works too. Thanks for the solution

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

3 participants