Skip to content

Adding search results to search registry for n/N #1632

Answered by ibhagwan
lcpichette asked this question in Q&A
Discussion options

You must be logged in to vote

If this is an issue with me just not understanding Lua let me know and I'll continue to work on it. But figured I'd atleast send this update in case maybe I am using your provided logic correctly, and there just needs to be a tweak to the logic.

It's lua and neovim and me just assuming what would work and typing it from the phone :-)

Tested and this works, can't guarantee edge cases you might need to debug this with special chars (although the magic pattern converter should do the trick), there probably is also a better way than manually feeding /regex<CR>N as keys but vim.fn.search or vim.regex:match_line didn't seem to do the trick, I also tried vim.fn.histadd("search", regex) - didn'…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ibhagwan
Comment options

@lcpichette
Comment options

@ibhagwan
Comment options

Answer selected by ibhagwan
@ibhagwan
Comment options

@lcpichette
Comment options

@ibhagwan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants