jackMort / ChatGPT.nvim

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

ChatGPTEditWithInstructions is broken when using lazyvim dashboard #317

Open mshirlaw-alteryx opened 8 months ago

mshirlaw-alteryx commented 8 months ago

The default configuration for lazyvim uses dashboard-nvim to show a splash screen. When using the ChatGPTEditWithInstructions command on this screen the UI is broken (see image).

Screenshot 2023-11-08 at 9 25 52 pm

The same issue is not present with the ChatGPT command (see image)

Screenshot 2023-11-08 at 9 26 34 pm

I am not sure if this is a ChatGPT.nvim issue or something better addressed by lazyvim or dashboard.nvim

Anyone else able to reproduce?

joeldrotleff commented 8 months ago

I don't have this issue but the EditWithInstructions command is broken for me - just spins endlessly, eventually shows some error about json parsing.

joeldrotleff commented 8 months ago

Ah nevermind I got it working. I had added code to my curlrc file to include timing information in the output, but it seems that interfered with EditWithInstructions (Even though the main functionality of ChatGPT plugin wasn't affected)

mshirlaw-alteryx commented 8 months ago

Perhaps we just need a way to disable this command on the splash screen (unless there already is a way). I'm not sure what would be a sensible alternative - I can't imagine wanting to use the splash screen as context for a question to GPT cc @jackMort