numToStr / FTerm.nvim

:fire: No-nonsense floating terminal plugin for neovim :fire:
MIT License
721 stars 24 forks source link

feat(config): add on_attach option #81

Closed utilyre closed 9 months ago

utilyre commented 1 year ago

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.