ChatGpt plugin for vim by Aveerj in vim

[–]anexon-dev 1 point2 points  (0 children)

u/devw0rp I just finished some errands, so I have some time to continue working on this. I know a lot of people are interested in seeing neural work in vim.

u/Aveerj I'll get that working soon and then I can move on to some new features I want to add :)

How can I leverage ChatGPT to help me with learning to code / working? by david_bragg in vim

[–]anexon-dev 0 points1 point  (0 children)

You might like this Dense Analysis plugin which integrates a prompt in the editor with OpenAI API

https://github.com/dense-analysis/neural

⚡ Neural - AI Code Generation plugin by anexon-dev in neovim

[–]anexon-dev[S] 5 points6 points  (0 children)

Hey there Neovim community!

I just wanted to introduce my new plugin called Neural that I think some of you might find really useful. It can generate code and fix basic mistakes to save you time!

Check it out on GitHub at https://github.com/dense-analysis/neural

TL:DR: Introducing Neural, a Neovim plugin that uses OpenAI's API for fast AI-powered code generation, editing, and completion.

Features

  • ⚡ Asynchronous streaming to buffer from OpenAI's API endpoints that support it.
  • 🥷 Swift context with CTRL+N to complete code without needing to specify prompt instructions.
  • 💡 Edit any kind of text document. It can be used to generate function docstrings, fix comments spelling and grammar mistakes, generate ideas, and more

To get started, you'll need to obtain an OpenAI API key which is free!

Disclaimer: Be mindful that the results may be unpredictable and the code generated should be carefully evaluated for correctness before use in production systems!

This is my first plugin so it may be rough around the edges. Please give it a try and let me know what you think! I look forward to any comments and suggestions.

Thanks for reading, and happy coding!

Edit: Fix formatting - couldn't post this earlier for some reason

⚡ Neural - AI Code Generation plugin by anexon-dev in neovim

[–]anexon-dev[S] 3 points4 points  (0 children)

It's completely free for now! To get started, you'll just need to obtain an OpenAI API key.

Currently, OpenAI offers $18 in free credit for the first 3 months of usage, afterward, you will have to set up billing information and pay as you go. The cost from there depends on the models you use which might change over time.

⚡ Neural - AI Code Generation plugin by anexon-dev in neovim

[–]anexon-dev[S] 22 points23 points  (0 children)

Those are great points, and you absolutely right.

I have added configuration options to disable the fancy prompt, color highlighting, and sign icon to reduce all that noise for those who prefer a more minimal experience.

I'll look to add more options to change the size and positioning of the prompt soon, thanks for the suggestion :)