Skip to content

runtime(hlyank): promote the hlyank example to a package #16919

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

Closed
wants to merge 1 commit into from

Conversation

chrisbra
Copy link
Member

related: #16866

@habamax
Copy link
Contributor

habamax commented Mar 17, 2025

It probably makes sense to add configuration for the function parameters.

...
var hlyank_hlgroup = get(g:, "hlyank_hlgroup", "IncSearch")
var hlyank_duration = get(g:, "hlyank_duration", 300)
var hlyank_invisual = get(g:, "hlyank_invisual", true)

augroup hlyank
  autocmd!
  autocmd TextYankPost * HighlightedYank(hlyank_hlgroup, hlyank_duration, hlyank_invisual)
augroup END

Signed-off-by: Christian Brabandt <cb@256bit.org>
@habamax
Copy link
Contributor

habamax commented Mar 18, 2025

Looks good to me.

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.

2 participants