Cycle words powered by mini.ai
#2304
drowning-cat
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
|
Thanks for sharing! Judging by the used name, you know that this functionality is already planned for 'mini.nvim'. I have a general idea of the design in mind, but need to finish more "pressing" modules first. Probably will be named 'mini.switch', though. As per the code. I didn't study it closely, but one thing caught my eye: I would suggest to not use multi-character string as textobject id in |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Simple word cycling similar to dial.nvim#constants.
Configuration example:
Advanced:
v:countjumpA pattern built from all words in
vim.g.cycle_configis searched usingsearch_method="cover_or_next". If a match is found, the corresponding cover pattern is searched usingsearch_method="cover". This second search is needed because mini.ai selects the shortest cover match.Code (version 1)
Simple:
v:countcycleCode (version 2)
Beta Was this translation helpful? Give feedback.
All reactions