jackMort/ChatGPT.nvim

[feature request]: Add some events for autocmd to the plugin

Open

#189 建立於 2023年5月9日

在 GitHub 查看
 (1 留言) (1 反應) (0 負責人)Lua (4,005 star) (323 fork)batch import
enhancementhelp wanted

描述

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.

for_chatgpt

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.

貢獻者指南