Skip to content

What about autocmd's? #653

Answered by NotAShelf
vinylen asked this question in Q&A
Feb 19, 2025 · 2 comments · 4 replies
Discussion options

You must be logged in to vote

Could you try (inside the list)

{
	enable = true;
    desc = "Highlight yanks on copy";
    pattern = ["*"];
    callback = lib.generators.mkLuaInline ''
    	function()
        	vim.highlight.on_yank({ timeout = 500 })
        end
    '';
}

I'm not on my system right now, but if I recall correctly the submodule system is designed for anonymous sets- not named ones. You'll also want to correct the pattern and the callback, but perhaps it'll be sensible for me to change the pattern to one of null, str, *or* a listOf str` to avoid confusion.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@vinylen
Comment options

vinylen Feb 20, 2025
Author Sponsor

@horriblename
Comment options

Comment options

You must be logged in to vote
2 replies
@NotAShelf
Comment options

Answer selected by vinylen
@vinylen
Comment options

vinylen Mar 11, 2025
Author Sponsor

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