Can we attach (nvim_buf_attach
) to a newly created buffer?
#27548
Unanswered
backdround
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to attach to all buffers that are created, but I didn't manage to do it
My attempt:
nvim_buf_attach
invim.schedule
works, but it happens after redraw (and hence after callbacks fromnvim_set_decoration_provider
), which is critical for my situation.I tried to use
BufRead
as an event for buffer loading, but it doesn't fire for buffers that aren't bound to a file.Beta Was this translation helpful? Give feedback.
All reactions