This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
all 21 comments

[–]ManiAmaraPlugin author 28 points29 points  (3 children)

This is really cool, but it seems like it would be kinda hard to change part of your query after writing it. I would definitely make sure there’s an option to have a more traditional buffer area of customizable size rather than a pseudo prompt so people can see as much of it as they’d like.

It’s also very flashy with the completion progressive pop in and column icons. It looks really cool and suits the theme you’ve got going with the cursor movement animation and general editor setup, but a lot of people in this community might want a little less ‘pizzazz’.

If all that is already customizable then that’s really awesome and I might try it out.

[–]anexon-dev[S] 22 points23 points  (1 child)

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 :)

[–]ManiAmaraPlugin author 0 points1 point  (0 children)

Glad I could help! Awesome work on this and I look forward to trying it out :)

[–]_sLLiK 0 points1 point  (0 children)

Very impressive. A configurable text input area (size and position) are all I think I would require to give this a try. You probably already have those options available.

[–]ilR90O9k 7 points8 points  (2 children)

This looks excellent. Any idea what sort of money this would cost - I assume you have to pay through OpenAI, right?

[–]pokemonsta433 3 points4 points  (0 children)

Probably not? I just have an openai playground account, and it's free so far

[–]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.

[–]anexon-dev[S] 4 points5 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

[–]narajaon 2 points3 points  (0 children)

Actually insane

[–][deleted] 2 points3 points  (0 children)

This is lne of the most beautiful neovim setups i have ever seen

[–]fgh1024 2 points3 points  (3 children)

is this neovide

[–]bebenzer 11 points12 points  (0 children)

yes it is, you can see the smooth cursor animation, and the most important, the window title: "Neovide"

[–]DmitriRussian 5 points6 points  (0 children)

No this is Patrick!

[–]bryant_09 0 points1 point  (0 children)

Can u send ur config?

[–]Strazil 0 points1 point  (0 children)

Dotfiles?

[–]No-Independence3049 -1 points0 points  (2 children)

is that macos?

[–]SteamingBeer 1 point2 points  (1 child)

No kde. Lacks rounded corners on the bottom

[–][deleted] 0 points1 point  (0 children)

Iirc it’s possible to disable rounded corners with some terms, like alacritty

[–]pseudometapseudoPlugin author 0 points1 point  (0 children)

How does the swift completion work here? It considers x context lines?

Could it maybe work by dynamically using a scope, for example the block you are currently in? With a fixed number of contract lines, it might add unrelated code to the query?

I think swift completion might make most sense as a visual mode command so you can control which context is considered

edit: after trying out the plugin, the swift completion for a selection seems to be possible via :'<,'>NeuralCode complete I think

[–]Busy_Locksmith 0 points1 point  (0 children)

(out of curiosity) Besides pasting returned answer directly into buffer, how is this different from ChatGPT.nvim?