Skip to content

TermOpen autocommand does not trigger #48

Closed Answered by folke
linusboehm asked this question in Q&A
Discussion options

You must be logged in to vote

This should work:

vim.api.nvim_create_autocmd("TermOpen", {
  callback = function(ev)
    Snacks.notify("Terminal opened!")
  end,
})

In case of toggling a terminal, TermOpen is only called on the first open.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by linusboehm
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