Bryley / neoai.nvim

Neovim plugin for intracting with GPT models from OpenAI
MIT License
558 stars 51 forks source link

Inject code not working (Lunarvim Nightly) #31

Open gipo355 opened 1 year ago

gipo355 commented 1 year ago

Slight modification to remove the gif. On lunarvim + neovim nightly

Problem

On using any inject code command, NeoAI start injecting ghost text ( empty lines get created ) but no content is inserted. It can be seen adding empty lines and am receiving the message that neoai generated the code successfully but the lines remain empty.

No error messages, other commands work

awhitehouse104 commented 1 month ago

for anyone else trying to get this to work, there's an issue with the stripping function where it's being applied to chunks of text (at least in my case). fixable but also easy to just use custom instructions ex https://github.com/awhitehouse104/neoai.nvim/commit/aa7329b9e5f92249314867feb291aa6c4362d9b8