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

Provide option to unbind default <Tab> and <CR> bindings for abbreviation expansion #355

Open
ElectronSutra opened this issue Oct 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@ElectronSutra
Copy link

Hello!

I'm a big fan of the plugin and have been using it for class.

I would like the option to unbind <Tab> and <CR> from expanding abbreviations, without also disabling abbreviations entirely. If someone (like me) has an insane personal preference for using keys other than <Tab> and <CR> for completion, it can be annoying to hit <Tab> for indenting the line and then get an expansion instead.

It is currently easy to map another key to expand abbreviations, using the require("lua.abbreviations").convert() function. I believe it would also be nice to either:

  1. Allow for keymaps = false in config.abbreviations in order to not bind <Tab> and <CR>, or
  2. Allow for config.mappings = false to remove those bindings.

Thank you -- your plugin has really saved my butt in my Formal Methods class becuase now I don't need to leave Neovim to do my coursework!

@Julian
Copy link
Owner

Julian commented Oct 7, 2024

(Thanks for the kind words!)

I think this sounds reasonable + doable. I have a few other things I'm immediately trying to finish with the plugin, but I'll try to have a look at this at least to form an opinion on your 2 possibilites in the next few days.

@Julian Julian added the enhancement New feature or request label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants