Autocomplete and Snippets in Neovim | FREE COURSE // EP 5

Sdílet
Vložit
  • čas přidán 14. 06. 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
  • Věda a technologie

Komentáře • 293

  • @mahirabbas3700
    @mahirabbas3700 Před 5 měsíci +98

    thanks nerd

  • @arturobracero3450
    @arturobracero3450 Před 4 měsíci +168

    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!

    • @beaumcdermott8742
      @beaumcdermott8742 Před 4 měsíci +4

      Thanks! Exactly what I missed. Works now. *tips hat*

    • @Stilghar
      @Stilghar Před 4 měsíci +2

      I've been trying to figure it out for the past half hour. Thank you!

    • @yuu-727
      @yuu-727 Před 3 měsíci +1

      ty

    • @fempyrean
      @fempyrean Před 3 měsíci +1

      thanks!

    • @willthompson6917
      @willthompson6917 Před 3 měsíci +1

      You are such a legend!

  • @gautomdas1495
    @gautomdas1495 Před 5 měsíci +136

    this is really one of the best courses on how to setup neovim

    • @CraftPit
      @CraftPit Před 5 měsíci +12

      i think it's the best one

    • @ryangilchrist3294
      @ryangilchrist3294 Před měsícem

      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!

  • @ezra3457
    @ezra3457 Před 3 měsíci +29

    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.

  • @FernandoGonzalez-ir1bx
    @FernandoGonzalez-ir1bx Před 3 měsíci +12

    By far, this is the best tutorial on neovim setup. For everyone. Simple, slow, very clear. Congratulations and thanks for this very helpful guide!!

    • @typecraft_dev
      @typecraft_dev  Před 3 měsíci +2

      thank you!

    • @Divineleo2023
      @Divineleo2023 Před 3 měsíci

      Same to you and congrats we are now official neovim begineer cult members

  • @user-mj1vr6ye4x
    @user-mj1vr6ye4x Před 5 měsíci +48

    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!

  • @jagraj7015
    @jagraj7015 Před 5 měsíci +13

    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!

  • @Pemol10
    @Pemol10 Před 5 měsíci +13

    Thanks to you I finally moved my config to lazy and lsp, you did amazing job with this series

  • @hamiltonianthoughts
    @hamiltonianthoughts Před 5 měsíci +2

    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.

  • @user-lj4ov4et2c
    @user-lj4ov4et2c Před 5 měsíci +2

    Please keep these going as long as you can. They are so approachable and easy to understand

  • @sewinvicta9274
    @sewinvicta9274 Před 5 měsíci

    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. 🙂

  • @Halesnaxlors
    @Halesnaxlors Před 5 měsíci +4

    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.

  • @dezly-macauley
    @dezly-macauley Před 5 měsíci +1

    🤘Thank you so much! I've been watching other tutorials on CZcams but the LSP, Autocomplete, and snippets section is where things would fall apart. Amazing work!

  • @ThatBidsh
    @ThatBidsh Před 5 měsíci +2

    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

  • @yakomisar
    @yakomisar Před 5 měsíci +21

    Cool, hopefully the Prime or TJ pay attention to your channel and what you are doing. Your hard work deserve subscribers.❤

  • @RicardoSilva-wo8sw
    @RicardoSilva-wo8sw Před 5 měsíci +1

    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!!

  • @alcb1310
    @alcb1310 Před 5 měsíci +3

    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

  • @Dainslief31
    @Dainslief31 Před 2 měsíci +1

    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

  • @PetrenkoAndrii
    @PetrenkoAndrii Před 5 měsíci +3

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

  • @juan_chan
    @juan_chan Před 5 měsíci +5

    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

  • @parthokr
    @parthokr Před 2 měsíci +1

    "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.

  • @hapaise2924
    @hapaise2924 Před 5 měsíci +1

    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

  • @spaghettiking653
    @spaghettiking653 Před měsícem

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

  • @domojestic4155
    @domojestic4155 Před 5 měsíci +1

    Woah, this one came out quick! Thanks for the continued work on the series!

  • @johnmike8844
    @johnmike8844 Před 5 měsíci +1

    I had just gotten to episode 4 and was hoping you'd get the autocomplete out. Thanks a ton typecraft

  • @anderkonzen
    @anderkonzen Před 5 měsíci +1

    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!

  • @programerlife8390
    @programerlife8390 Před 5 měsíci

    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.

  • @VickyGYT
    @VickyGYT Před 29 dny

    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.

  • @phenixphyre666
    @phenixphyre666 Před 5 měsíci

    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!!!

  • @Denis-wf4bl
    @Denis-wf4bl Před 5 měsíci +3

    I really like the way you are explaining! This is one of the best neovim courses! I would even pay for that.

  • @lorenzoallegretti4388
    @lorenzoallegretti4388 Před 5 měsíci +1

    Straight up the best guide for nvim and it's not even close man, huge kudos

  • @harrynair1811
    @harrynair1811 Před 5 měsíci +1

    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

  • @volowan5454
    @volowan5454 Před 3 měsíci

    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!

  • @carlosmc2763
    @carlosmc2763 Před 2 měsíci

    Finally a deep but easy to understand explanation of completion and snippets! Thank you a lot!

  • @TheRegalboss
    @TheRegalboss Před 5 měsíci +3

    Yes! 😃Extremely good job with this series! I wish you a happy new year!

  • @NilabhraRoyChowdhury
    @NilabhraRoyChowdhury Před 4 měsíci

    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.

  • @koczkadavid2009
    @koczkadavid2009 Před 5 měsíci

    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!

  • @jizhang2407
    @jizhang2407 Před 5 měsíci +2

    "It's like we're looking at the same moon together." -- The only poetic neovim tutorial ever.

  • @stevenrodriguez2882
    @stevenrodriguez2882 Před 4 měsíci +1

    Thank you for admitting the completion situation is complicated 🙏, makes me feel more sane 😂

  • @AllanOlsen1970
    @AllanOlsen1970 Před 5 měsíci +2

    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! =)

    • @typecraft_dev
      @typecraft_dev  Před 5 měsíci +1

      Awesome I’m glad you got something out of this!

  • @TheCazacuCristian
    @TheCazacuCristian Před 5 měsíci +3

    I saw what you added on git 6 hours ago

  • @thejespr
    @thejespr Před 5 měsíci +8

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

    • @typecraft_dev
      @typecraft_dev  Před 5 měsíci +1

      It’s a happy hacking keyboard (series s)

    • @thejespr
      @thejespr Před 5 měsíci

      @@typecraft_dev appreciate it :)

  • @manee427
    @manee427 Před 5 měsíci +1

    Merry christmas and wish you healthy year. Thanks for this awsome content

  • @cafe5265
    @cafe5265 Před měsícem

    this is the best tutorial that I ever see about nvim configurations

  • @tomasertola
    @tomasertola Před 2 měsíci +3

    never felt so involved in learning neovim, your videos are amazing!

  • @rafaeldelazerigruenevald64
    @rafaeldelazerigruenevald64 Před 5 měsíci +4

    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.

    • @typecraft_dev
      @typecraft_dev  Před 5 měsíci

      fantastic!

    • @harrynair1811
      @harrynair1811 Před 5 měsíci

      I was about to ask this question 😅 I’ll try this route thanks !

  • @tudorliviu6405
    @tudorliviu6405 Před 5 měsíci +1

    So sorry about COVID, hope you'll feel better soon ! Happy New Year !!

  • @KTKettler
    @KTKettler Před 5 měsíci

    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!

  • @faustozampa
    @faustozampa Před 3 měsíci

    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.

  • @Rockodona
    @Rockodona Před 5 měsíci +1

    Production and content quality through the roof🎉🎉🎉🎉🎉

  • @moosa3956
    @moosa3956 Před 5 měsíci

    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

  • @gambhirsharma
    @gambhirsharma Před 5 měsíci +4

    Thanks, @typecraft_dev for the shout-out. 😍

  • @geneliverman6827
    @geneliverman6827 Před 5 měsíci

    Great job and I hope you feel better soon!

  • @flyerhawk
    @flyerhawk Před měsícem +1

    Great tutorial! Easy to follow along and got my neovim setup ready to replace pycharm!

  • @domojestic4155
    @domojestic4155 Před 5 měsíci +2

    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 😁

  • @bolcheviking
    @bolcheviking Před 5 měsíci

    Nerd Dude, you are the best! Happy New Year!

  • @octaviomontt89
    @octaviomontt89 Před 4 měsíci

    Hi man

  • @antoinehorguelin3084
    @antoinehorguelin3084 Před měsícem

    Thank you for this amazing course. Loved it and I now have a config that I (mostly) understand. Thanks nerd!

  • @Nut_cracker-robot
    @Nut_cracker-robot Před 5 měsíci +1

    Thanks for the upload! Happy new year🎉

  • @vladimirnicolescu1342
    @vladimirnicolescu1342 Před 5 měsíci

    Great tutorials! Looking forward to the debuggers next !

  • @MagnusSmith
    @MagnusSmith Před 5 měsíci +2

    You have done a really good job on explaining the completions

  • @natescode
    @natescode Před 5 měsíci +2

    Yes. My weekend is now complete

  • @AmitGupta-po4gf
    @AmitGupta-po4gf Před 2 měsíci

    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.

  • @littlecurrybread
    @littlecurrybread Před 5 měsíci

    Happy new year! 🎉ty for this as well

  • @viniciusmelquiades
    @viniciusmelquiades Před 5 měsíci

    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!

  • @cedric1731
    @cedric1731 Před 5 měsíci +1

    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.

  • @ffedchik
    @ffedchik Před 5 měsíci +2

    What a great present for the upcoming New Year. Hey, thanks nerd!

  • @avinashdubey6503
    @avinashdubey6503 Před 5 měsíci

    awesome playlist and great explaination. I followed the steps and setup everything. Thank you so much sir.

  • @filippzakharov1378
    @filippzakharov1378 Před 5 měsíci

    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!

  • @kb571994
    @kb571994 Před 5 měsíci

    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?

  • @fantero1649
    @fantero1649 Před 5 měsíci +1

    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

  • @beaumcdermott8742
    @beaumcdermott8742 Před 4 měsíci

    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.

  • @scottb4029
    @scottb4029 Před 5 měsíci +1

    Thank you for your content , this is the best Neovim course I have found on CZcams. BTW my son came down with COVID on Christmas Eve. There must be a little outbreak this Holiday season.

    • @typecraft_dev
      @typecraft_dev  Před 5 měsíci

      Yeah there’s absolutely a lot going around. Hope your son doesn’t get too sick and recovers quickly!!

  • @pseabrook
    @pseabrook Před 5 měsíci

    Stellar content delivery and stellar stache!

  • @ChristianSteen-bw7pd
    @ChristianSteen-bw7pd Před 5 měsíci +1

    As you got COVID, no wonder the next episode will be on debuggers ;). Wishing you a speedy recovery!

  • @maxcharacterlimitreache-
    @maxcharacterlimitreache- Před 4 měsíci

    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!

  • @lafuenteposible
    @lafuenteposible Před 5 měsíci

    please more episodes, this is awesome!

  • @youdontknowme2508
    @youdontknowme2508 Před 5 měsíci

    Waiting for the debugger epsiode. And happy new year btw

  • @pietraderdetective8953
    @pietraderdetective8953 Před 2 měsíci +1

    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!

  • @user-ti9mv9hb3g
    @user-ti9mv9hb3g Před 4 měsíci

    Thanks for tutorial! Bit confused about configuration but believe you are doing it right and it works 😎

  • @ianespinosa2685
    @ianespinosa2685 Před 5 měsíci

    thanks for this video I was expecting it a lot. Amazing serie, I hope you get better

  • @zamorablandino
    @zamorablandino Před 5 měsíci

    Could not agree more. Best course ever, i finally have understand neovim configs...

    • @zamorablandino
      @zamorablandino Před 5 měsíci

      Hope you feel better! Happy new year thanks for this!

  • @theredditbandit
    @theredditbandit Před 5 měsíci

    this is just amazing , I cannot wait for debuggers

  • @edgardoarriagada9467
    @edgardoarriagada9467 Před 5 měsíci +1

    Man!, you saved me from installing a nvim distro so solve all my config mess (I didn't really wanted to)
    blessing from Chile

  • @Naz-pk4ll
    @Naz-pk4ll Před 5 měsíci +1

    get well! these are amazing, great work!

  • @luismedina4904
    @luismedina4904 Před 3 měsíci

    Awesome videos, first time configuring and using nvim

  • @74Bagas
    @74Bagas Před 4 měsíci

    now this, makes me revisit my neovim! super!

  • @ky3ow
    @ky3ow Před 4 měsíci

    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

  • @TheGogiu
    @TheGogiu Před 2 měsíci

    Great Job Nerd... Here a great fan of yours

  • @iustin4172
    @iustin4172 Před 5 měsíci +1

    Love your vids!

  • @oilcake4392
    @oilcake4392 Před 5 měsíci

    man you are freaking awesome, wish you good health! Thanks a lot, really

  • @younglion0451
    @younglion0451 Před 5 měsíci +1

    You're fantastic, thank you so much!!

  • @user-jh7rn6kd3q
    @user-jh7rn6kd3q Před 5 měsíci +1

    Amazing !! Keep it coming

  • @ralmarkalmar9083
    @ralmarkalmar9083 Před 5 měsíci

    dude your actually just the best

  • @dimitrisdrosos245
    @dimitrisdrosos245 Před 5 měsíci +2

    Thanks again for the great tutorial.

  • @mobugs
    @mobugs Před 2 měsíci

    this helped me clean up my config, ty

  • @xolvum
    @xolvum Před 5 měsíci +1

    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.

  • @bananakid111
    @bananakid111 Před 4 měsíci +1

    didn't know Will Arnett was a Neovim fan just like me! 😆 Great tutorials in all seriousness though

  • @danielandreasen2293
    @danielandreasen2293 Před 5 měsíci

    Feel better soon :)
    Debuggers are tough. Would love to see some debugging for web-development (front-end more than back-end)

  • @jenkinpan185
    @jenkinpan185 Před 5 měsíci

    it is really useful. thanks so much