So I wanted to add some keymaps to the terminal's buffer, and saw an on_attach option was missing in the config.
I'm not quite certain whether on_attach fits in this context since it is called after buffer is created and not after the terminal process is attached to the buffer. Even so I decided to name it this way so that users can easily figure out what the callback does.
NOTE: Passing Term alongside buffer handler is useful for actions like toggle.
So I wanted to add some keymaps to the terminal's buffer, and saw an
on_attach
option was missing in the config.I'm not quite certain whether
on_attach
fits in this context since it is called after buffer is created and not after the terminal process is attached to the buffer. Even so I decided to name it this way so that users can easily figure out what the callback does.NOTE: Passing
Term
alongside buffer handler is useful for actions liketoggle
.