-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
Support operator-pending maps #275
Comments
@andrewferrier thanks for opening an issue. If you want to start a pull request on that, we'd be happy to accept your contribution! If you have any questions about the plugin's existing codebase, a great place to ask for help is the |
Even some examples of what you would like could help! |
Sorry for the slow response. What I guess I was looking for here was a custom operator, e.g. something like the ability to type I need to learn/develop a good pattern for creating custom operators in NeoVim without using VimL. If you're happy to keep this issue open, when I get some time I'll looking at creating a pull req for this. |
Hi all! thank you for this plugin! @andrewferrier I actually asked about this exact feature within primeagen's discord channel a couple days ago, and was referenced here! One cool project, and strong example of how to implement custom operatorfunc in NeoVim is this tpope/vim-surround 2.0 plugin, kylechui/nvim-surround. See line nvim-surround/init.vim for an example of how the operator func is set! they've also implemented the dot operator as well there. I still need to peruse the refactoring.nvim to really crystallize the "how" and form an opinion on "where" this feature should exist. Any feedback or helpful links are appreciated. PS: for those less familiar with implementing custom operators, the Vimscript the Hard Way does a good job of explaining it. He even has a case study that implements a operator func mapper with the grep operator (in vimL of course) found here edit: @andrewferrier I just saw that you've left some comments within the nvim-surround repo, so apologies for the old news. That being said.. Hopefully me linking it here, spurs the conversation forward. |
Hey all, Edit: @k-times-c Unless I'm misunderstanding, I'm pretty sure that this case wouldn't require the use of custom operators, but rather operator functions (see |
refactoring.nvim
is really nice, and seems to be getting really robust! Thanks for your hard work on it.It would be wonderful if it could support operator-pending maps in addition to visual mode maps. I'm an old school vimmer who's a bit saddened by how many plugins are defaulting to visual mode these days :(
Might be happy to work on it with a pull req if you'd be interested...
The text was updated successfully, but these errors were encountered: