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

new setting g:lexima_map_backspace to disable/remap backspace #101

Open
astier opened this issue Aug 2, 2020 · 3 comments
Open

new setting g:lexima_map_backspace to disable/remap backspace #101

astier opened this issue Aug 2, 2020 · 3 comments

Comments

@astier
Copy link

astier commented Aug 2, 2020

Hallo. Could we have an option g:lexima_map_backspace just like g:lexima_map_escape?

My usecase is that I generally don't need it and would like to disable leximas behavior for backspace, but more importantly it doesn't play well with some completion-plugins like completion-nvim. It has a setting which disables completion when characters are deleted with backspace. When I use lexima somehow the completion is still triggered each time. I guess its because lexima hijacks backspace.

Also maybe this new setting could replace g:lexima_ctrlh_as_backspace? Just a thought.

@astier
Copy link
Author

astier commented Aug 2, 2020

Or maybe there is another technical workaround which I don't know off because I don't really have the understanding of how it works and why lexima would make completion-nvim trigger completion.

@cohama
Copy link
Owner

cohama commented Aug 3, 2020

g:lexima_map_backspace (or disable any keys feature) is a nice idea but lexima.vim doesn't have for now.

Try the following workaround:
set iunmap <BS> after lexima.vim initialization and before completion-nvim.

But I wonder why completion menu conflicts with lexima's <BS> behavior.
I'm using lexima.vim along with deoplete-nvim and no completion menu problem. <BS> also closes completion menu.

@astier
Copy link
Author

astier commented Aug 3, 2020

iunmap <BS> causes the error E31: No such mapping when I start nvim. Anyway its not that important now.

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

No branches or pull requests

2 participants