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

Remove deprecated functions #46

Merged
merged 13 commits into from Jan 19, 2022
Merged

Remove deprecated functions #46

merged 13 commits into from Jan 19, 2022

Conversation

hkupty
Copy link
Owner

@hkupty hkupty commented Jan 18, 2022

Also, this PR contains a few nice improvements:

  • Allow for <Cmd> mappings, avoiding autocmds
  • Drop viml commands in favor of lua-centric commands:
    • This should avoid back-and-forth swapping between lua and viml;
    • It should also allow for simpler to understand (i.e. centralized) code
  • Make use of newer nvim apis:
    • Most notably pasting without resorting to normal pa and other hacks.

Hopefully nothing changes to the user, but if anything the responsiveness should improve with those small tweaks.

This allows to make use of <Cmd>
This allows to skip autocmds when changing mode + is less intrusive on
the user
This should be better by avoiding swapping back-and-forth between lua
and viml.

Those lua commands are usually simple façades to lua functions and
defined only as convenience mappings anyways.
Also, simplify the structure and create a new wrapper
Also, document a few of the properties
They were very similar and introduced an unnecessary indirection.
This should be simpler now
Also, fixes a little bug in which context was not taken in account when
reading the values
It should only be used when running the setup
It should not be immediately available. If someone needs it, it can
still be accessed by `require("nvimux.bindings")`
@hkupty hkupty merged commit 875ee0d into master Jan 19, 2022
@hkupty hkupty deleted the drop-deprecated branch January 19, 2022 10:00
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

2 participants