Better than Copilot? This AI plugin for Neovim is Incredible

  Рет қаралды 64,551

Dreams of Code

Dreams of Code

Күн бұрын

To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/DreamsofCode . The first 200 of you will get 20% off Brilliant’s annual premium subscription.
When it comes to A.I. plugins for Neovim, Copilot is the most well known out there. However, there are other plugins that can provide additional features Copilot can not.
In this video, I look at one of these other plugins, and showcase how to generate tests, fix bugs and have code explained with it, as well as some other features that are really fun to use.
⚠️ NVChad has had some breaking changes, make sure to use the v2.0 branch if you're using this video. You can find the command below.
Commands:
NVChad Install line: git clone -b v2.0 github.com/NvChad/NvChad ~/.config/nvim --depth 1
This video was sponsored by Brilliant
#neovim #ai #coding
My socials:
Twitter: / dreamsofcode_io
Discord Server: / discord
My Equipment:
Voice over: kit.co/dreamsofcode/voiceover
Coding: kit.co/dreamsofcode/coding
Please consider supporting me as well!
Patreon: / dreamsofcode
Video Links:
Custom Config: github.com/dreamsofcode-io/ne...
NVChad: nvchad.com/
ChatGPT.nvim: github.com/jackmort/chatgpt.nvim
My fork: github.com/dreamsofcode-io/ch...
00:00 Intro
00:58 Getting Started
04:05 ChatGPT command
06:26 Complete Code
07:04 Add Tests, Fix Gugs, Explain Code
09:01 Edit Code with Instructions
10:07 Act as

Пікірлер: 126
@dreamsofcode
@dreamsofcode 11 ай бұрын
To try everything Brilliant has to offer-free-for a full 30 days, visit brilliant.org/DreamsofCode . The first 200 of you will get 20% off Brilliant’s annual premium subscription.
11 ай бұрын
As the author of this plugin, I must say, this video is excellent! Would you mind adding a link to it to the README ?
@avi7278
@avi7278 11 ай бұрын
I don't think you need permission to link to anything. That was decided early on in the internet's existence.
@dreamsofcode
@dreamsofcode 11 ай бұрын
I would not mind at all! And thank you for the wonderful plugin!
@-Kal-
@-Kal- 11 ай бұрын
Thanks for creating it! I use it all the time along with copilot.
@ayushgun
@ayushgun 11 ай бұрын
Are there any plans to add a similar plugin for VSCode?
@gustavojoaquin_arch
@gustavojoaquin_arch 11 ай бұрын
​@@ayushgun i suppose 🏳️‍🌈?
@56phil020244
@56phil020244 10 ай бұрын
Great start. I'd like to see you do a full series on this plugin. Thanks.
@seraphimwang
@seraphimwang 11 ай бұрын
Amazing explanation as usual. I knew this plug-in but explained by you it is better and worth to try. Thanks for your effort and time
@williamseipp9691
@williamseipp9691 4 ай бұрын
it seems like a trivial problem, but copy pasting code into gpt is indeed cumbersome enough for me to not do it. Having gpt right in nvim so I can bounce ideas off of it "is this code awkward?" "explain what lines 5-11 are doing in greater detail" will be such a boost. great video as usual
@madsrobinhavmand8813
@madsrobinhavmand8813 8 ай бұрын
Amazing seeing the "api_key_cmd" config option mentioned here! Think it's the first time my code (I added the 66 lines of code that it consists of) is mentioned on KZbin xD
@shynsky
@shynsky 11 ай бұрын
I'd love to see your keyboard strokes as I'm not proficient with nvim yet and seeing them would help a ton. Keep up the great work!
@dreamsofcode
@dreamsofcode 11 ай бұрын
I shall try and find a solution that works! It might be something I add in post production moving forward! Thank you for the feedback.
@marcuswest8085
@marcuswest8085 11 ай бұрын
(not sure if this is what you are asking) kzbin.info/www/bejne/q6PGfWtsitWkkMU, oops, wrong one, kzbin.info/www/bejne/rZ21ZpqPmZuoo5I
@rolandcucicea6006
@rolandcucicea6006 Ай бұрын
get a keyboard remapping software (I'm using keyboard maestro on macos) on windows there's autohotkey that's quite popular, though harder to use. that way u can set up a keyboard shortcut and have it simulate the keypresses
@ClaudioPascual
@ClaudioPascual 5 ай бұрын
Awesome video!
@Mechacookie
@Mechacookie 11 ай бұрын
Amazing content!
@dreamsofcode
@dreamsofcode 11 ай бұрын
Thank you!
@cyrusrohail9243
@cyrusrohail9243 7 ай бұрын
Hi, I want to get an api key myself but I wanted to ask your review after its usage, its been about 4 months, have you been using the api in these 4 months? And if yes what has your usage pricing evaluated up to?
@niteshtudu6449
@niteshtudu6449 11 ай бұрын
Love your videos bruh. Can you make a video about code folding in neovim. Really appreciate your effort🙏
@dreamsofcode
@dreamsofcode 11 ай бұрын
I shall add it to the backlog!
@LeungWong
@LeungWong 4 ай бұрын
How did you get the token count shown in the video? Seems like this question has been asked, but no one has gotten answer for it yet, nor has the author of this video replied to it.
@user-iq3tz8yz4h
@user-iq3tz8yz4h 5 ай бұрын
Amazing! Btw How to display the usage of token every time I ask chatGPT in terminal? mine it doesn't see that. something wrong with my settings?
@rolandwarburton387
@rolandwarburton387 Ай бұрын
Hi friend did you ever figure out how to display the token usage?
@mattshirlaw3092
@mattshirlaw3092 6 ай бұрын
Does the add tests command always append tests to the current buffer? Is there a way to append to a separate test file?
@ongayijohnian8787
@ongayijohnian8787 3 ай бұрын
You should have like more than a million subs 💯
@vando2108
@vando2108 11 ай бұрын
please do a video for typescript, react and nodejs, thank you
@maciejgebarski7850
@maciejgebarski7850 3 ай бұрын
Hi Dream of Code, thanks for the great video. I have one question about the ChatGPT plugin. I often have responses cut off (for example, when I ask it to write tests, the code cuts off suddenly in half). Do you experience this kind of problem?
@alxchiri
@alxchiri 3 ай бұрын
Check the plugin configuration. It has a config of max 300 tokens, that might explain why some responses get cut off.
@moeruishi
@moeruishi 11 ай бұрын
Amazing tutorial.
@dreamsofcode
@dreamsofcode 11 ай бұрын
Thank you!
@Vcshahriyer
@Vcshahriyer 4 ай бұрын
@dreamsofcode Brilliant content ! but pass don't ask for master pass on new terminal session or nvim , I had to manually trigger the pass show command before any new session. Please suggest any better solution Thanks.
@nikob381
@nikob381 11 ай бұрын
Any estimate to approximately how much it would cost if you regularly use this in your day-to-day work? This looks much cooler than Copilot (especially since nvim hasn't gotten any of its new Copilot X features), but I at least like that I just pay a steady monthly fee for copilot, rather than having to guess the fee based on my usage.
@dreamsofcode
@dreamsofcode 11 ай бұрын
I agree, it's nice to pay a one off fee and that's it. Although this would probably be no where near the cost of copilot. It's actually $0.002 per 1000 tokens. My total usage for the video was $0.03 (that includes research and playing around with diff scripts). You can set a hard usage limit so you won't exceed $10 a month as well. Ultimately, GH is making a profit on copilot, so direct to GPT should be cheaper.
@nikob381
@nikob381 11 ай бұрын
@@dreamsofcode Perfect, and thanks for the quick reply as well! Just finished setting it up along with Pass, and I'm excited to try it out!
@niksingh710
@niksingh710 11 ай бұрын
nice video mate. waiting for the python data science video.
@marcuswest4572
@marcuswest4572 11 ай бұрын
If Elliot applies all this in a Nixos config/flake, I'd pay money for his config. Sadly I think he is a Mac User
@potatopc3048
@potatopc3048 11 ай бұрын
which software do you use to make these videos? It look awesome
@dreamsofcode
@dreamsofcode 11 ай бұрын
I use Davinci resolve for most of the timeline editing, and I use After Effects for any motion graphics compositions. I should do a video on it! Thank you for the feedback!
@anurag9385
@anurag9385 11 ай бұрын
I'm really interested in setting up Astro in Neovim using NVChad, but I'm having trouble finding a good tutorial. Could you please create a video where you walk us through the process, from installation to customization?
@marcuswest4572
@marcuswest4572 11 ай бұрын
you don't need astrovim. NVChad + ,DoC's other video on Nvim covers all the bases
@lamprospitsillou6325
@lamprospitsillou6325 11 ай бұрын
Does this work with the free tier of GPT? Incredible quality also, love the content!
@simpingsyndrome
@simpingsyndrome 11 ай бұрын
It didn't work haha
@dreamsofcode
@dreamsofcode 11 ай бұрын
Thank you for the feedback! I believe it requires 3.5 Turbo.
@IvanZupancic
@IvanZupancic 11 ай бұрын
Let's say I don't want to send 'stuff' to chatGPT and want to run a local-ish stable diff - do you happen to know if there is a plugin for that ? ( a personalized AI ) - thanks
@RenderingUser
@RenderingUser 11 ай бұрын
Maybe there's some open source language models But I doubt they are as advanced as chatgpt
@dreamsofcode
@dreamsofcode 11 ай бұрын
I'd love there to be one but I don't believe there are any advanced ones out there currently.
@IvanZupancic
@IvanZupancic 11 ай бұрын
@@dreamsofcode was thinking more in terms of stable diff running locally - then tying it in with a plugin. don't think we need 1:1 coverage with chatgpt. if we'd get like 50 it would be great
@BrazenNL
@BrazenNL 11 ай бұрын
Amazing.
@dreamsofcode
@dreamsofcode 11 ай бұрын
Thank you
@johanngambolputty5351
@johanngambolputty5351 11 ай бұрын
Are there any based on open source LLMs? i.e. based on something like Open Assistant instead of ChatGPT?
@dreamsofcode
@dreamsofcode 11 ай бұрын
Unfortunately Open Assistant doesn't have an API at this stage so we'll have to wait!
@uliahshafar8599
@uliahshafar8599 3 ай бұрын
Hi, I'd like to ask, How to store api in windows powershell?
@joaop3268
@joaop3268 11 ай бұрын
Does this plugin support GPT 4.0 API? Or just the 3.5 Turbo as they only mention it in their README
@dreamsofcode
@dreamsofcode 11 ай бұрын
If the API hasn't changed then I'm sure it's supported! I'll give it a go and let you know.
@LeungWong
@LeungWong 4 ай бұрын
@@dreamsofcodehave you had chance to see whether GPT4 is supported?
@dylwintftw
@dylwintftw 3 ай бұрын
Yo, the 7:04 timestamp/chapter in your description says "Fix Gugs"
@emerson.dvlmt.g
@emerson.dvlmt.g 7 ай бұрын
Is way too much for me to configure all the pass manager in terminal by now, and I can't make it works wit enviromant variable, I don't know how to do it
@MeraMadness
@MeraMadness 6 ай бұрын
Can you make a setup for Unity + C# ?
@shoddits2156
@shoddits2156 11 ай бұрын
I live under a rock but certainly I heard about A.I 😁
@dreamsofcode
@dreamsofcode 11 ай бұрын
I apologize to all rock dwellers!
@xzskywalkersun515
@xzskywalkersun515 5 ай бұрын
For 4:13, I don't have the auto-completion pop-up; when I ask Chatgpt a question, I don't see the token count shown.
@alxchiri
@alxchiri 3 ай бұрын
Seems that auto-completion pops up on Tab: type : and a few letters and hit Tab. Auto-complete should show up.
@mAr3cKii
@mAr3cKii 9 ай бұрын
*_no work...chatgpt warn - eturn a value when executed. The given api repository does not have the given page :( _*
@nikob381
@nikob381 11 ай бұрын
Any advice on how to ensure that the plugin stays able to access the API key in Pass? It periodically throws a bunch of error messages, at which point I need to exit neovim, manually access the API key in Pass, enter my gpg password, and then with that unlocked it's finally able to get to it when I reopen neovim. Is there a smoother solution?
@dreamsofcode
@dreamsofcode 11 ай бұрын
Hmm interesting. If you join my discord and message me I can take a look at the error messages it sends up. I'm not having any issues with pass my end so I might be able to share what I'm using.
@nikob381
@nikob381 10 ай бұрын
@@dreamsofcode thank you sounds good, will do! I realize it's probably more on my end, that I need to make sure Mac is aware of my pgp key or something like that... If I figure it out I'll share that in your discord too
@kaixuanjaw3173
@kaixuanjaw3173 8 ай бұрын
I'm having the same problem, do you have a solve?\
@vagrant1943
@vagrant1943 7 ай бұрын
Sounds like your gpg agent is timing out. Just need to increase the time limit in gnupg’s config file, or use gnome keyring
@RBova1
@RBova1 3 ай бұрын
Great content I saw in the documentation that we have a option formax-token usage, but i couldnt figured it out. Is it a limit for each :ChatGPT action? openai_params = { model = "gpt-3.5-turbo", frequency_penalty = 0, presence_penalty = 0, max_tokens = 300,
@rolandcucicea6006
@rolandcucicea6006 Ай бұрын
that's arbitrary u can set it to 1000+ if you want, depends which model u use, check api page on openai for each model for 3.5turbo the max tokens are 4k if I remember correctly so if u set 2k you should be safe. even 1k should be enough for most tasks
@BrazenNL
@BrazenNL 11 ай бұрын
Looks like your PR has been merged going through the issues, so your fork isn't needed anymore?
@dreamsofcode
@dreamsofcode 11 ай бұрын
That's correct. My PR has been merged but the team decided to keep the original configuration, so the async prefix only exists on my fork. No need to use it any more!
@xzskywalkersun515
@xzskywalkersun515 4 ай бұрын
Please do a more detailed instruction if possible. Thanks!
@leanghok120
@leanghok120 11 ай бұрын
Can you make a video on how you customize zsh to look like that
@dreamsofcode
@dreamsofcode 11 ай бұрын
I can! Added to my backlog
@vanvothe4817
@vanvothe4817 11 ай бұрын
How to use vim for agenda?
7 ай бұрын
This will just make everything more expensive as now you need to pay for every request right?
@salvadorhernandezlopez953
@salvadorhernandezlopez953 Ай бұрын
The issue with chatgpt is that this AI read your code and when you are working in a company with privative code project that's not good, well it's marked in the company security policy. So for the moment copilot is the best option, but I'm not really like this AI I agree chatGpt is better.
@TomerBenDavid
@TomerBenDavid 10 ай бұрын
Is it sending our code to the internet?
@dreamsofcode
@dreamsofcode 10 ай бұрын
It will send any prompts up there (including code), copilot also does the same.
@RenderingUser
@RenderingUser 11 ай бұрын
0:48 Wait It can do godot???? :O
@marcuswest8085
@marcuswest8085 11 ай бұрын
Not a fan of GPT. It gives me rubbish answers on everything, code included. (They must know I have zero tolerance for Microssssoft).....Any chance of a plugin from an open source ai project?
@dreamsofcode
@dreamsofcode 11 ай бұрын
That's the best thing about open source, we can always make one! What are your favorite open source ai models?
@marcuswest8085
@marcuswest8085 11 ай бұрын
@@dreamsofcode Codeium? CoPilotZ is paid I think
@wilbertmc
@wilbertmc 5 ай бұрын
curl: option -H: requires parameter curl: try 'curl --help' or 'curl --manual' for more information :(
@MohaaAbdi
@MohaaAbdi 5 ай бұрын
something wrong with your configuration, it showed me this because i used the wrong command for api_key_cmd. now it works fine
@joswadsouza1445
@joswadsouza1445 10 ай бұрын
I request please do neovim setup for c#
@dreamsofcode
@dreamsofcode 10 ай бұрын
It's on the backlog!
@fernandojsantos09
@fernandojsantos09 2 ай бұрын
Amazing video, but I think, at least by now, Copilot better integrated than ChatGPT and cheaper.
@rolandcucicea6006
@rolandcucicea6006 Ай бұрын
copilot is like 10usd a month. gpt models throught the api (which is what u need here, not chatgpt) are pay per token usage. on 3.5 turbo 10usd could last a year
@techsaifcore7
@techsaifcore7 2 ай бұрын
Can I use Openai Api for free
@rolandcucicea6006
@rolandcucicea6006 Ай бұрын
almost free. minimum topup is 5usd and if you're using 3.5turbo instead of 4/4turbo you'll likely use the 5usd in a year cuz it's dirt cheap
@qnprogrammer
@qnprogrammer 8 ай бұрын
Please make a video with huggingface.
@heroe1486
@heroe1486 11 ай бұрын
Only worth if someone has a chatgpt 4 api key I guess, I've access to the chat copilot beta and even that is garbage
@RenderingUser
@RenderingUser 11 ай бұрын
Lmao yea
@dreamsofcode
@dreamsofcode 11 ай бұрын
Generating automated tests is pretty dope in my opinion.
@lovely-shrubbery8578
@lovely-shrubbery8578 11 ай бұрын
​@@dreamsofcode it's prob most sensible to not pay for chatgpt pro right? Because with dev account it'll just charge by use I think 🤔
@dreamsofcode
@dreamsofcode 11 ай бұрын
@@lovely-shrubbery8578 yeah I think the API is still usage based, so you're just paying for tokens used. Looking at the price gpt-3-turbo looks to be able $0.002 per 1k tokens, so really inexpensive.
@radvilardian740
@radvilardian740 10 ай бұрын
but why u hate angular ?
@dreamsofcode
@dreamsofcode 10 ай бұрын
Haha, I don't really. I just have very minimal experience with it, and don't know many people who do.
@nickskywalker2568
@nickskywalker2568 10 ай бұрын
It looks really cool but I cant stop thinking about the privacy concerns... this is a straight no for at work. I enjoyed the video though
@dreamsofcode
@dreamsofcode 10 ай бұрын
Yeah, both this and copilot are pretty bad for telemetry, which really defys one of Neovims greatest selling points. I'm glad you enjoyed the video, however!
@Ashaiksameer
@Ashaiksameer 11 ай бұрын
Java config😢😢😢
@dreamsofcode
@dreamsofcode 11 ай бұрын
It's in the backlog still! It'll come though I promise
@Ashaiksameer
@Ashaiksameer 11 ай бұрын
@@dreamsofcode is it next video??reply sir🥺
@RenderingUser
@RenderingUser 11 ай бұрын
Oh, so it's not exactly free then
@dreamsofcode
@dreamsofcode 11 ай бұрын
No, it's not unfortunately. I don't think any A.I. is free at the moment. It's pretty low cost though especially as it has adhoc usage.
@RenderingUser
@RenderingUser 11 ай бұрын
@@dreamsofcode what about open assistant?
@dreamsofcode
@dreamsofcode 11 ай бұрын
@@RenderingUser I just had a look. They don't have an API at the moment unfortunately. It seems they're looking to be more about data capture than providing a product. Would have been a nice option otherwise!
@RenderingUser
@RenderingUser 11 ай бұрын
@@dreamsofcode no I reckon you can run the ai on your own pc
@avi7278
@avi7278 11 ай бұрын
No response streaming is a hard pass for me. It's not that hard, guys. Not streaming the response is just being lazy.
@dreamsofcode
@dreamsofcode 11 ай бұрын
This would be a nice feature to add in. It's open source, so should be easy to add a PR.
@antoineleduc7611
@antoineleduc7611 10 ай бұрын
What is response streaming ?
This is perhaps my favorite password manager for the terminal
11:10
Dreams of Code
Рет қаралды 142 М.
I Tried Every AI Coding Assistant for Neovim
17:30
DevOps Toolbox
Рет қаралды 22 М.
顔面水槽がブサイク過ぎるwwwww
00:58
はじめしゃちょー(hajime)
Рет қаралды 117 МЛН
ШЕЛБИЛАР | bayGUYS
24:45
bayGUYS
Рет қаралды 700 М.
La final estuvo difícil
00:34
Juan De Dios Pantoja
Рет қаралды 21 МЛН
Turn VIM into a full featured IDE with only one command
11:55
Dreams of Code
Рет қаралды 604 М.
CoPilot Review: My Thoughts After 6 Months
9:45
ThePrimeagen
Рет қаралды 533 М.
When RESTful architecture isn't enough...
21:02
Dreams of Code
Рет қаралды 239 М.
Testcontainers have forever changed the way I write tests
12:11
Dreams of Code
Рет қаралды 102 М.
How To Make Your Boring macOS Terminal Amazing With Alacritty
16:33
Josean Martinez
Рет қаралды 71 М.
Why Vim Experts Do THIS Instead of Using Tabs...
7:55
DevOps Toolbox
Рет қаралды 116 М.
Why I'm no longer using Copilot
7:07
Dreams of Code
Рет қаралды 156 М.
I tried Neovim Distributions so you don't have to
9:12
typecraft
Рет қаралды 130 М.
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 2,3 МЛН
Apple, как вас уделал Тюменский бренд CaseGuru? Конец удивил #caseguru #кейсгуру #наушники
0:54
CaseGuru / Наушники / Пылесосы / Смарт-часы /
Рет қаралды 4,2 МЛН
Как я сделал домашний кинотеатр
0:41
RICARDO
Рет қаралды 1,5 МЛН
iPhone green Line Issue #iphone #greenlineissue #greenline #trending
0:10
Rk Electronics Servicing Center
Рет қаралды 4,8 МЛН