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

Fixes configuration loss. #381

Closed erfeatux closed 4 months ago

erfeatux commented 5 months ago

For some reason, Neovim calls the setup function twice during startup, resulting in the loss of individual settings.

jackMort commented 5 months ago

hm that's strange nobody inform about similar issue before and this solution look's hacky, let's wait with merge, please use the fork for now,

erfeatux commented 5 months ago

Agreed, it's strange. It's interesting that api_key_cmd manages to apply before the second call and works, unlike the other options. Didn't dig deep, don't have time.

erfeatux commented 4 months ago

When using Packer, after making changes to the configuration, just need to run ':PackerSync'.