nvim-autopairs
nvim-autopairs copied to clipboard
feat: add 'map_custom_bs' option
Problem: Some users (like me) use a custom bs key.
that function is public . i think you can add this on your config.
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
You could make your mapping call the remapped backspace, with remap = true
vim.keymap.set('i','<custom-bs>','<bs>',{remap = true})
You could make your mapping call the remapped backspace, with
remap = truevim.keymap.set('i','<custom-bs>','<bs>',{remap = true})
Yes, that works too. Thanks for the solution