jackMort/ChatGPT.nvim

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

開放

#189 建立於 2023年5月9日

 (1 則留言) (1 個反應) (0 位負責人)Lua (319 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (3,998 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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.

貢獻者指南