jackMort / ChatGPT.nvim

ChatGPT Neovim Plugin: Effortless Natural Language Generation with OpenAI's ChatGPT API
Apache License 2.0
3.56k stars 307 forks source link

Handle invalid action #362

Closed joninvski closed 5 months ago

joninvski commented 6 months ago

Whenever the user inputs a invalid action, indicate the action does not exist, and show a list of the available actions.

Before:

image

After:

image

joninvski commented 6 months ago

Great idea! but what do you think about using https://neovim.io/doc/user/lua.html#vim.notify() instead error?

Thanks for the feedback. Changed as requested.

gcarrillo commented 5 months ago

This PR helped me diagnose the issue in https://github.com/jackMort/ChatGPT.nvim/discussions/370.