-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
refactor: rewrite to use mappings (for most modes) #59
base: master
Are you sure you want to change the base?
Conversation
I'm also currently rewriting this on a branch here in the repo |
@Sam-programs I added some changes to this pr |
to allow modifying the buffer in functions
Your changes LGTM. In the commit above, I swapped vim.schedule(function()
vim.api.nvim_set_current_line("")
end EDIT: -- Defer execution to avoid side-effects
vim.defer_fn(function()
-- set undo point
vim.o.ul = vim.o.ul
require("luasnip").expand_or_jump()
end, 1) |
the defer is still needed I'll merge this in the next few days |
closes #23 |
Operator-pending mode still doesn't work, because i am not sure how it's supposed to work.
I added comments starting with
WIP:
for things that still need discussion.Fix: #58
Fix: #46
Fix: #49