Autocomplete and Snippets in Neovim | FREE COURSE // EP 5
HTML-код
- Опубликовано: 2 июн 2024
- coming soon: typecraft.dev
X: / typecraft_dev
Repository for this config: github.com/cpow/neovim-for-newbs
List of plugin repos for this episode:
* github.com/hrsh7th/nvim-cmp
* github.com/L3MON4D3/LuaSnip
* github.com/rafamadriz/friendl...
* github.com/hrsh7th/cmp-nvim-lsp
Welcome back to neovim for newbs! the FREE course where we configure neovim from zero to IDE from scratch. In this episode we will cover everything it takes to add autocomplete and snippets to our neovim config! this includes VS-Code like snippets and LSP completions as well. Buckle up everyone, this episode is a wild ride!
chapters:
0:00 - intro
0:58 - recap of our config
1:44 - special surprise
3:05 - lets talk plugins
4:54 - start autocompletion configuration
10:26 - luasnip and our first snippets are working!
11:15 - lsp snippets for our configuration
13:32 - lsp snippets are working!
14:09 - testing our snippets on javascript and ruby projects
15:28 - wrapping up - Наука
thanks nerd
For anyone that is following along and didn't quite get it right the first time: at 12:18 remember to uncomment the line that sets nvim_lsp as a source, or the additional completions by the LSP will not show up. Took me a minute to figure out
Great video, thanks!
Thanks! Exactly what I missed. Works now. *tips hat*
I've been trying to figure it out for the past half hour. Thank you!
ty
thanks!
You are such a legend!
this is really one of the best courses on how to setup neovim
i think it's the best one
I've been following along/doing a few custom bits myself, and it's completely replaced VSCode at work for me now. Lazygit is absolutely fantastic too!
The primeagen got me interested in learning vim/nvim. But you got me Hooked. Your voice, your explanations and overall the whole course up to now has been amazing. Thank you for allowing it to be easy to get into vim and setting things up and knowing what's happening.
Love that feedback thank you!
By far, this is the best tutorial on neovim setup. For everyone. Simple, slow, very clear. Congratulations and thanks for this very helpful guide!!
thank you!
Same to you and congrats we are now official neovim begineer cult members
Hi man! I've been eagerly checking almost every hour to see if a new video has been posted. Your neovim setup tutorials have been incredibly helpful to me. The insights and tips you share are not only informative but have significantly improved my workflow. Just wanted to express my gratitude for these amazing videos. Keep up the great work!
Love hearing that. Thank you!
Cool, hopefully the Prime or TJ pay attention to your channel and what you are doing. Your hard work deserve subscribers.❤
Awwww thanks
Really great series man! One small suggestion: Please enable show keystrokes at the bottom of the screen. This will enable vim beginners like me to learn some shortcuts easily. Thanks!
I followed your videos, you helped me complete my nvim configuration for Golang. I struggled a lot in the past, watched so many videos but your's are the most crystal clear and easy to understand videos. I can see lot of your efforts going into making this series. A big thank you.
"We are looking at the same moon together"
Man, I just started missing someone.
BTW great content. I've been watching your videos from EP 1 and fell in love with Lua.
Woah, this one came out quick! Thanks for the continued work on the series!
Please keep these going as long as you can. They are so approachable and easy to understand
I really enjoy how you keep to the core awesome functionality of all plugins without over-complicating things. It's a joy to follow your nvim series and it made me rewrite my entire config using Lazy instead of packer.
I had just gotten to episode 4 and was hoping you'd get the autocomplete out. Thanks a ton typecraft
🤘Thank you so much! I've been watching other tutorials on RUclips but the LSP, Autocomplete, and snippets section is where things would fall apart. Amazing work!
this has been hands down the best few tutorials I have watched and I can't wait for the other videos in these series! one thing I would love to see in a tutorial is git and all that stuff, this is my first time using neovim so pretty cool
Thanks for the awesome content! I, just like others here, already went through other tutorials but yours is super easy to understand. Hope you recover well and keep posting!
I struggled so much and for so long, moving from one video to another, never came to a configuration that I am confident about, until I saw your series. Thank you so much for a wonderful series and a masterful presentation. May you have a great year, and I look forward to your courses. 🙂
Watched 5 times, I think. Edited configs couple of times and got it worked. Yes, it's harder, but this just another level of coolness and convenience. Thanks a lot, you explained everything just ultra simple way! Can't wait for next video, but first wish you good health! :)
I spent days trying to configure my neovim environment and you made my life easier with that task. Thanks Bro. you're the best. Greetings from Venezuela and have a happy new year.
I decided to try to configure nvim in the start of the week when I saw your series, it was a lifesaver! Thank so much for this wonderfull walkthroughs!!
Yes! 😃Extremely good job with this series! I wish you a happy new year!
thank you and happy new year!
Thank you so much, I'm new on vim and neovim and thank to this series now I'm able to configure and add some plugins, two topics that could be awesome so see is git management , specially merge conflicts and a way to sync my configuration to other machine, I'm from vscode and I missing those features, happy new year
Thanks, @typecraft_dev for the shout-out. 😍
Thank YOU for the sick dashboard :)
Highly recommended to anyone who is struggling to get their neovim config right. Couldn't recommend enough for anyone who started their vim journey very recently.
Thanks to you I finally moved my config to lazy and lsp, you did amazing job with this series
Awesome!!
Thanks for taking the time to make the tutorial! I added all the other plugins as dependencies to nvim-cmp. Seems to be working. I also mapped tab and shift-tab to forward and backward scroll of the snippet suggestions to avoid using arrow keys.
Thank you so much for this whole series :) Even though it is a complicated topic you make it so much clearer, you got a new subscriber in me!
You're goated my guy, you've made this config so exciting!! I am stoked af to get this all running on my laptop right now. I've been trying to figure out how to navigate the slodge of Neovim plugins and it all seemed so complicated, but you really made everything look so easy...! Thanks so much, hope you have a great day :)
This is a great series! I've been using vim for years, but the last few I've felt my config had turned into bolognese. It feels good to kind of start from a clean slate with much more modern tools. It's great that you explain why we are taking the steps we are taking. Makes it way easier to remember how to do it myself later.
this series has been incredibly clear and easy to follow!
the fact that there's all these slightly different ways of doing the same things with neovim was super daunting to me when trying to set up my own config so prior to this I was just using a 'good enough' config that I just copied from someone else without understanding what everything does (and frequently hopping back into regular vim or sublimetext or vscode for certain things), but now thanks to you I have a whole nvim config that works exactly how I want it to, completely eliminating the need for me to ever use sublime or vscode again, and that I can confidently modify any time.
that's a mindblowing leap from where I was at with this stuff just a few months ago lol
I saw what you added on git 6 hours ago
I finally completed it , and i am glad i found your channel on my journey , thanks a lot ! your work is too underrated , you are the best nvim teacher to me
Straight up the best guide for nvim and it's not even close man, huge kudos
This is an excellent and educational series. I love how you teach things. I have to admit that I have been checking the github repo to see what is added next. Keep up the excellent work!!!
Me too! 😂
Merry christmas and wish you healthy year. Thanks for this awsome content
never felt so involved in learning neovim, your videos are amazing!
Thanks!!
Finally a deep but easy to understand explanation of completion and snippets! Thank you a lot!
Darn I’m on vacation but watching the 4&5 episodes… can’t wait to get back to my computer to try the last 2 episodes out … Thanks a bunch for this series
this is the best tutorial that I ever see about nvim configurations
Got myself into neovim almost a year ago, hacked togethet my first config, although I tried to put in the effort I never understood cnonfiguring it in depth. Now this changed, your tutorial series is the best, incredibly straightforward and clear. Thank you for making it!
Nerd Dude, you are the best! Happy New Year!
get well soon.. awesome series, its getting close to a year that I redid my nvim config so maybe its about time i redid mine
This is hands on the best nvim config to follow along as a newbie in the nvim world, the best i ve found on youtube, amazing. I would be SOOOOO grateful if you keep this up as a serie as you change your own config in the future just to update or tweak a couple of plugins here and there as new come out. I will for sure subscribe and follow along dude, thanks.
I really like the way you are explaining! This is one of the best neovim courses! I would even pay for that.
Thank you!!
So sorry about COVID, hope you'll feel better soon ! Happy New Year !!
"It's like we're looking at the same moon together." -- The only poetic neovim tutorial ever.
😂
Great job and I hope you feel better soon!
Thank you for admitting the completion situation is complicated 🙏, makes me feel more sane 😂
Production and content quality through the roof🎉🎉🎉🎉🎉
Happy new year! 🎉ty for this as well
I just finished this series and now I feel like I actually understand how my configuration work and how to extend it more. I've been using Lazyvim for the last few months, but I felt I was just guessing any time I wanted to make a change to it. Thank you!
Glad it was helpful!
Thanks for the upload! Happy new year🎉
Happy new year!
Hi man
Great tutorials! Looking forward to the debuggers next !
Great tutorial! Easy to follow along and got my neovim setup ready to replace pycharm!
Awesome!
This was really something! keep em comming! I've made a fork and done some addons on my own. I've learned more on this 5 episodes than 2 months stumbling around in nvchad, lazyvim, kickstart,lunarvim and more pluss hundreds of hours with videos. nice explanations and thank you! =)
Awesome I’m glad you got something out of this!
This series is so good :) Can really tell you've invested quite a bit of time into it, been enjoying it so far - and need to try it with neovim :) A kind of unrelated question, which keyboard are you using? Sounds so pleasant :)
It’s a happy hacking keyboard (series s)
@@typecraft_dev appreciate it :)
You have done a really good job on explaining the completions
Thank you!
Love your videos. It really helped me out not just with nvim, but with Lua in general. For example, I use awesome wm and it's config is in Lua as well. Thanks a lot. Always like in advance on this series. I know what I will do tomorrow morning) Also it's good that you show how you work with documentation for plugins you use. And hooray for debuggers!) Get well!
I've followed your tutorials to configure my neovim. The biggest difference is that I tried to use NixOS, so I had to translate most stuff to Nix. Almost everything worked. Only luasnip completions didn't work, but everything else did. Thanks a lot for the videos!
Thank you for this amazing course. Loved it and I now have a config that I (mostly) understand. Thanks nerd!
What a great present for the upcoming New Year. Hey, thanks nerd!
Happy new year!
I can only say, you just earned a new subscriber. Very nice video quality many youtubers with lot of subscribers more can only dream of. Thank you! :D
One little "nit-pick": I would love to see the key-showcase in the bottom right to return like in Ep. 3 I think.
Great video, we are missing a DAP configuration, your way of explaining makes me understand better and that way I can modify this plugins to make it my own
I’ll be working on a DAP video soon
awesome playlist and great explaination. I followed the steps and setup everything. Thank you so much sir.
I've been learning about web development for some time now and I've been looking for something to escape vscode for a while, thanks nerd.
Banger videos by the way
Hell yeah thank you!
Hat tip to you, good sir. Thanks for helping me get this set up and helping me understand it better. Great tutorials. I'm subscribed.
This is by far the best neovim configuration playlist i found on youtube!
Thank you for investing your time doing this.
P.S You don't use the autopairs plugin?
Thanks for tutorial! Bit confused about configuration but believe you are doing it right and it works 😎
What a great video! Just one thing to point out since you dont do any modifications in LuaSnip, cmp_luasnip, friendly-snippets and cmp-nvim-lsp you can just put them as dependencies of nvim-cmp and it will work just as well.
fantastic!
I was about to ask this question 😅 I’ll try this route thanks !
Man!, you saved me from installing a nvim distro so solve all my config mess (I didn't really wanted to)
blessing from Chile
If your explanation was to be even 1% below perfect, i wouldn't have understood a thing from this mess.
Instant sub, you're great!
thanks for this video I was expecting it a lot. Amazing serie, I hope you get better
Also, I think a good episode to include would be some git integration! I know vim-fugitive is a thing, but it'd be nice to have something that sticks to the UI experienced you've developer over the last few episode 😁
get well! these are amazing, great work!
Thank you so much!
Thank you for your content , this is the best Neovim course I have found on RUclips. BTW my son came down with COVID on Christmas Eve. There must be a little outbreak this Holiday season.
Yeah there’s absolutely a lot going around. Hope your son doesn’t get too sick and recovers quickly!!
9:12 "cmp_luasnip" and things that have cmp in them apart from main plugin just add sources for completion so they show up in your menu. The "nvim_cmp" then takes all registered completions, filters them as you type, then display them. Luasnip is responsible of expanding your snippet into full code, and setting marks to which you can jump(and other advanced stuff). Additionally, when you doing cmp completion and press your confirm key, if the source of completion was from snippet engine, it calls expand function that you relegate to luasnip.lsp_expand function
Stellar content delivery and stellar stache!
Waiting for the debugger epsiode. And happy new year btw
As you got COVID, no wonder the next episode will be on debuggers ;). Wishing you a speedy recovery!
I followed along this neovim config from the start coz default LazyVim install always threw up on me (massive memory usage when operating with buffers). Reinstalled LazyVim like 3x, asking question in GH didn't help.
But man, this guy saved the day!
now I got a working neovim config after got stuck for several days.
Thank you very much for the video. You're amazing and your explanation is crystal clear!
Love seeing this. Thanks!
this is just amazing , I cannot wait for debuggers
Could not agree more. Best course ever, i finally have understand neovim configs...
Hope you feel better! Happy new year thanks for this!
Awesome videos, first time configuring and using nvim
Thank you and welcome to the party!
please more episodes, this is awesome!
man you are freaking awesome, wish you good health! Thanks a lot, really
Yes. My weekend is now complete
Great Job Nerd... Here a great fan of yours
now this, makes me revisit my neovim! super!
didn't know Will Arnett was a Neovim fan just like me! 😆 Great tutorials in all seriousness though
😆
i learned a lot from this series, and even though you said in the first video that the person watching should atleast have a little bit of knowledge of vim motions, you can make a video of the "basics" commands so that your series will be the go to and the first thing any vim new user will watch,
i don't really write long comments on videos, but this is how much i like the series.
thanks again :}
edit: if you are still reading, this is a tip i learned but i don't remember from where.
if you find that the Escape is too far, you can remap it to jk, so that instead of pressing Escape to go to normal mode, you can press jk really fast.
Feel better soon :)
Debuggers are tough. Would love to see some debugging for web-development (front-end more than back-end)
Amazing !! Keep it coming
This is amazingly helpful. If you want to go the extra mile, maybe an episode on copilot config would be nice. There just doesn't seem to be anything out there for it, especially as far as cmp is concerned.
You're fantastic, thank you so much!!
Thanks again for the great tutorial.
My pleasure!
Love your vids!
Thank you and I hope you recover soon. I'll be waiting for the debugger.
And one question, is there something for Neovim for Git? How to see marks of new lines and changes? Maybe for a future video. And happy new year
Yes there is a “gitsigns” plugin
this helped me clean up my config, ty