TermOpen autocommand does not trigger #48
-
I'm trying to run an autocommand on TermOpen, but it doesn't seem to trigger. I tried a couple of different approaches, e.g.: |
Beta Was this translation helpful? Give feedback.
Answered by
folke
Nov 9, 2024
Replies: 1 comment
-
This should work: vim.api.nvim_create_autocmd("TermOpen", {
callback = function(ev)
Snacks.notify("Terminal opened!")
end,
}) In case of toggling a terminal, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
linusboehm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This should work:
In case of toggling a terminal,
TermOpen
is only called on the first open.