Using oatmeal in neovim
MikeyBeez opened this issue · 5 comments
I was able to load oatmeal using packer. I find that only codellama will put numbers for code blocks. I can copy and append, but I don't know how to interact with existing code. The video shows a window being opened from within nvim. Can you please give some more detailed instructions on working with code?
Sure! The neovim plugins usage docs has a quick description on how to start a session from an existing file using either your configured hot key, or the :Oatmeal command. Check it out! https://github.com/dustinblackman/oatmeal.nvim
As for code clocks missing the selection number, what version of Oatmeal are you using? As of version 0.9.0, all code blocks get an index number assigned to them. Would you also happen to have a screenshot of an example with missing index numbers? You can open up your old sessions by running oatmeal sessions open
Thanks!
That's a funny looking response from the model, that's why! Oatmeal is expecting markdown code blocks (triple back ticks) to be sent back from the model to mark them with an index number. It tries to encourage the model to do it too by appending to the first prompt you send.
Did you change something with your system prompt that had it come back with [PYTHON] prefixed to the code example responses? I've never seen that before.
U just noticed that I wrote [ython. I wonder it the brace could have caused this.
Probably! LLMs can spit out some odd responses, but generally do a good job. As long as code comes back on markdown blocks, all should work as expected :)