jackMort / jackMort/ChatGPT.nvim
[feature request]: Add some events for autocmd to the plugin
- Dominant language
- Lua
- Stars
- 4k
- Forks
- 317
- PR merge metrics
- No merged PRs in 30d
Description
Hello everyone.
How about adding some events for autocmd to the events (open, close, etc.) of this plugin? This will allow users to have more versatile settings. For example, the following GIF is my use case.

In this example, I'm using the popup feature of tmux and using neovim as an interface for ChatGPT. I'm using an event to close neovim when ChatGPT finishes. This way, I can easily access ChatGPT even during non-coding work (in my case, server maintenance). Of course, some users might come up with even better ways to use it.
This time, I added events only to the part where the chat window closes, but there may be other useful events as well. I would like to hear everyone's opinions on this matter.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by examining the plugin's chat-window close handling and any existing event or autocmd behavior. Clarify which lifecycle events should be exposed, then define the event names and expected behavior before verifying that users can trigger actions such as closing Neovim when the chat window closes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100