neoai.nvim icon indicating copy to clipboard operation
neoai.nvim copied to clipboard

Inject code not working (Lunarvim Nightly)

Open gipo355 opened this issue 1 year ago • 1 comments

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

gipo355 avatar Apr 24 '23 15:04 gipo355

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

awhitehouse104 avatar Aug 02 '24 13:08 awhitehouse104