-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some ideas... #5
Comments
haven't looked into the code, but it does seem that the openAI requests already include the right language, if I run the plugin in a javascript file I get js results, and in a lua file, I get lua results. |
Hmm I was in a .go file earlier and did something like "AI write function to ..." and got JS code :-) |
This could be very useful if the UX is good! |
I've noticed better results when using context completion instead of prompts for this kind of thing. So instead of
Or better yet, writing out the function signature: function add (x: number, y: number): number {
<Ctrl-A>
} When using completion mode (no prompt) the plugin sends 20 lines of text above and below the cursor that helps to give context to OpenAI. |
This will be good! There's this use case that I found that it to complete using ai.vim, where I visually highlight a chunk of code and tell chatgpt3 to "explain this". Because of the nature of the plugin now, it can only look at the code, try to change it and come back with weird result. |
Great plugin, this is really cool! Here are some suggestions how to make it even better:
Have a setup/config that allows to set things like:
Conversation-Mode where one can go back and forth with ChatGPT in a floating window and at the end have the last response parsed into the buffer.
The text was updated successfully, but these errors were encountered: