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

Поділитися
Вставка
  • Опубліковано 15 чер 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
  • Наука та технологія

КОМЕНТАРІ • 293

  • @mahirabbas3700
    @mahirabbas3700 5 місяців тому +100

    thanks nerd

  • @arturobracero3450
    @arturobracero3450 4 місяці тому +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 4 місяці тому +4

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

    • @Stilghar
      @Stilghar 4 місяці тому +2

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

    • @yuu-727
      @yuu-727 3 місяці тому +1

      ty

    • @fempyrean
      @fempyrean 3 місяці тому +1

      thanks!

    • @willthompson6917
      @willthompson6917 3 місяці тому +1

      You are such a legend!

  • @gautomdas1495
    @gautomdas1495 5 місяців тому +137

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

    • @CraftPit
      @CraftPit 5 місяців тому +12

      i think it's the best one

    • @ryangilchrist3294
      @ryangilchrist3294 Місяць тому

      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 3 місяці тому +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 3 місяці тому +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  3 місяці тому +2

      thank you!

    • @Divineleo2023
      @Divineleo2023 3 місяці тому

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

  • @user-mj1vr6ye4x
    @user-mj1vr6ye4x 5 місяців тому +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 5 місяців тому +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 5 місяців тому +13

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

  • @hamiltonianthoughts
    @hamiltonianthoughts 5 місяців тому +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 5 місяців тому +2

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

  • @sewinvicta9274
    @sewinvicta9274 5 місяців тому

    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 5 місяців тому +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 5 місяців тому +1

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

  • @ThatBidsh
    @ThatBidsh 5 місяців тому +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 5 місяців тому +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 5 місяців тому +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 5 місяців тому +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

    • @typecraft_dev
      @typecraft_dev  5 місяців тому +1

      I’ll be working on a DAP video soon

  • @Dainslief31
    @Dainslief31 2 місяці тому +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 5 місяців тому +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 5 місяців тому +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 2 місяці тому +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 5 місяців тому +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 Місяць тому

    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 5 місяців тому +1

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

  • @johnmike8844
    @johnmike8844 5 місяців тому +1

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

  • @anderkonzen
    @anderkonzen 5 місяців тому +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!

  • @VickyGYT
    @VickyGYT Місяць тому

    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.

  • @programerlife8390
    @programerlife8390 5 місяців тому

    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.

  • @phenixphyre666
    @phenixphyre666 5 місяців тому

    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 5 місяців тому +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 5 місяців тому +1

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

  • @harrynair1811
    @harrynair1811 5 місяців тому +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

  • @carlosmc2763
    @carlosmc2763 2 місяці тому

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

  • @volowan5454
    @volowan5454 3 місяці тому

    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!

  • @NilabhraRoyChowdhury
    @NilabhraRoyChowdhury 4 місяці тому

    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.

  • @TheRegalboss
    @TheRegalboss 5 місяців тому +3

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

  • @koczkadavid2009
    @koczkadavid2009 5 місяців тому

    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 5 місяців тому +2

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

  • @stevenrodriguez2882
    @stevenrodriguez2882 4 місяці тому +1

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

  • @AllanOlsen1970
    @AllanOlsen1970 5 місяців тому +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  5 місяців тому +1

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

  • @TheCazacuCristian
    @TheCazacuCristian 5 місяців тому +3

    I saw what you added on git 6 hours ago

  • @thejespr
    @thejespr 5 місяців тому +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  5 місяців тому +1

      It’s a happy hacking keyboard (series s)

    • @thejespr
      @thejespr 5 місяців тому

      @@typecraft_dev appreciate it :)

  • @manee427
    @manee427 5 місяців тому +1

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

  • @cafe5265
    @cafe5265 Місяць тому

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

  • @tomasertola
    @tomasertola 2 місяці тому +3

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

  • @rafaeldelazerigruenevald64
    @rafaeldelazerigruenevald64 5 місяців тому +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  5 місяців тому

      fantastic!

    • @harrynair1811
      @harrynair1811 5 місяців тому

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

  • @tudorliviu6405
    @tudorliviu6405 5 місяців тому +1

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

  • @KTKettler
    @KTKettler 5 місяців тому

    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!

  • @Rockodona
    @Rockodona 5 місяців тому +1

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

  • @faustozampa
    @faustozampa 3 місяці тому

    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.

  • @geneliverman6827
    @geneliverman6827 5 місяців тому

    Great job and I hope you feel better soon!

  • @gambhirsharma
    @gambhirsharma 5 місяців тому +4

    Thanks, @typecraft_dev for the shout-out. 😍

    • @typecraft_dev
      @typecraft_dev  5 місяців тому +1

      Thank YOU for the sick dashboard :)

  • @moosa3956
    @moosa3956 5 місяців тому

    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

  • @flyerhawk
    @flyerhawk Місяць тому +1

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

  • @domojestic4155
    @domojestic4155 5 місяців тому +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 5 місяців тому

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

  • @octaviomontt89
    @octaviomontt89 4 місяці тому

    Hi man

  • @antoinehorguelin3084
    @antoinehorguelin3084 Місяць тому

    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 5 місяців тому +1

    Thanks for the upload! Happy new year🎉

  • @vladimirnicolescu1342
    @vladimirnicolescu1342 5 місяців тому

    Great tutorials! Looking forward to the debuggers next !

  • @MagnusSmith
    @MagnusSmith 5 місяців тому +2

    You have done a really good job on explaining the completions

  • @natescode
    @natescode 5 місяців тому +2

    Yes. My weekend is now complete

  • @AmitGupta-po4gf
    @AmitGupta-po4gf 2 місяці тому

    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 5 місяців тому

    Happy new year! 🎉ty for this as well

  • @cedric1731
    @cedric1731 5 місяців тому +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.

  • @viniciusmelquiades
    @viniciusmelquiades 5 місяців тому

    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!

  • @ffedchik
    @ffedchik 5 місяців тому +2

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

  • @avinashdubey6503
    @avinashdubey6503 5 місяців тому

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

  • @filippzakharov1378
    @filippzakharov1378 5 місяців тому

    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!

  • @beaumcdermott8742
    @beaumcdermott8742 4 місяці тому

    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.

  • @fantero1649
    @fantero1649 5 місяців тому +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

  • @kb571994
    @kb571994 5 місяців тому

    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?

  • @pseabrook
    @pseabrook 5 місяців тому

    Stellar content delivery and stellar stache!

  • @scottb4029
    @scottb4029 5 місяців тому +1

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

    • @typecraft_dev
      @typecraft_dev  5 місяців тому

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

  • @ChristianSteen-bw7pd
    @ChristianSteen-bw7pd 5 місяців тому +1

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

  • @maxcharacterlimitreache-
    @maxcharacterlimitreache- 4 місяці тому

    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 5 місяців тому

    please more episodes, this is awesome!

  • @youdontknowme2508
    @youdontknowme2508 5 місяців тому

    Waiting for the debugger epsiode. And happy new year btw

  • @user-ti9mv9hb3g
    @user-ti9mv9hb3g 5 місяців тому

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

  • @pietraderdetective8953
    @pietraderdetective8953 2 місяці тому +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!

  • @ianespinosa2685
    @ianespinosa2685 5 місяців тому

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

  • @zamorablandino
    @zamorablandino 5 місяців тому

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

    • @zamorablandino
      @zamorablandino 5 місяців тому

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

  • @theredditbandit
    @theredditbandit 5 місяців тому

    this is just amazing , I cannot wait for debuggers

  • @edgardoarriagada9467
    @edgardoarriagada9467 5 місяців тому +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 5 місяців тому +1

    get well! these are amazing, great work!

  • @luismedina4904
    @luismedina4904 3 місяці тому

    Awesome videos, first time configuring and using nvim

    • @typecraft_dev
      @typecraft_dev  3 місяці тому

      Thank you and welcome to the party!

  • @74Bagas
    @74Bagas 4 місяці тому

    now this, makes me revisit my neovim! super!

  • @ky3ow
    @ky3ow 4 місяці тому

    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 2 місяці тому

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

  • @iustin4172
    @iustin4172 5 місяців тому +1

    Love your vids!

  • @oilcake4392
    @oilcake4392 5 місяців тому

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

  • @younglion0451
    @younglion0451 5 місяців тому +1

    You're fantastic, thank you so much!!

  • @user-jh7rn6kd3q
    @user-jh7rn6kd3q 5 місяців тому +1

    Amazing !! Keep it coming

  • @ralmarkalmar9083
    @ralmarkalmar9083 5 місяців тому

    dude your actually just the best

  • @dimitrisdrosos245
    @dimitrisdrosos245 5 місяців тому +2

    Thanks again for the great tutorial.

  • @mobugs
    @mobugs 2 місяці тому

    this helped me clean up my config, ty

  • @xolvum
    @xolvum 5 місяців тому +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 4 місяці тому +1

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

  • @danielandreasen2293
    @danielandreasen2293 5 місяців тому

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

  • @rickyisajedi
    @rickyisajedi 5 місяців тому +1

    Get well soon!!