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
  • НаукаНаука

Комментарии • 282

  • @mahirabbas3700
    @mahirabbas3700 5 месяцев назад +91

    thanks nerd

  • @arturobracero3450
    @arturobracero3450 3 месяца назад +154

    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 3 месяца назад +4

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

    • @Stilghar
      @Stilghar 3 месяца назад +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 месяцев назад +133

    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 2 месяца назад +25

    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 2 месяца назад +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  2 месяца назад +2

      thank you!

    • @Divineleo2023
      @Divineleo2023 2 месяца назад

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

  • @user-mj1vr6ye4x
    @user-mj1vr6ye4x 5 месяцев назад +47

    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!

    • @typecraft_dev
      @typecraft_dev  5 месяцев назад +4

      Love hearing that. Thank you!

  • @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.❤

  • @jagraj7015
    @jagraj7015 4 месяца назад +12

    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!

  • @VickyGYT
    @VickyGYT 18 дней назад

    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.

  • @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.

  • @domojestic4155
    @domojestic4155 5 месяцев назад +1

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

  • @user-lj4ov4et2c
    @user-lj4ov4et2c 4 месяца назад +2

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

  • @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.

  • @johnmike8844
    @johnmike8844 5 месяцев назад +1

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

  • @dezly-macauley
    @dezly-macauley 5 месяцев назад +1

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

  • @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

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

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

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

  • @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.

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

  • @TheRegalboss
    @TheRegalboss 5 месяцев назад +3

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

    • @typecraft_dev
      @typecraft_dev  5 месяцев назад +1

      thank you and happy new year!

  • @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

  • @gambhirsharma
    @gambhirsharma 5 месяцев назад +4

    Thanks, @typecraft_dev for the shout-out. 😍

    • @typecraft_dev
      @typecraft_dev  5 месяцев назад +1

      Thank YOU for the sick dashboard :)

  • @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.

  • @Pemol10
    @Pemol10 5 месяцев назад +13

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

  • @NilabhraRoyChowdhury
    @NilabhraRoyChowdhury 3 месяца назад

    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.

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

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

  • @Halesnaxlors
    @Halesnaxlors 4 месяца назад +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.

  • @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

  • @TheCazacuCristian
    @TheCazacuCristian 5 месяцев назад +3

    I saw what you added on git 6 hours ago

  • @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

  • @lorenzoallegretti4388
    @lorenzoallegretti4388 4 месяца назад +1

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

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

  • @manee427
    @manee427 5 месяцев назад +1

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

  • @tomasertola
    @tomasertola 2 месяца назад +3

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

  • @carlosmc2763
    @carlosmc2763 Месяц назад

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

  • @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

  • @cafe5265
    @cafe5265 25 дней назад

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

  • @koczkadavid2009
    @koczkadavid2009 4 месяца назад

    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!

  • @bolcheviking
    @bolcheviking 5 месяцев назад

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

  • @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

  • @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.

  • @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.

  • @tudorliviu6405
    @tudorliviu6405 5 месяцев назад +1

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

  • @jizhang2407
    @jizhang2407 5 месяцев назад +2

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

  • @geneliverman6827
    @geneliverman6827 5 месяцев назад

    Great job and I hope you feel better soon!

  • @stevenrodriguez2882
    @stevenrodriguez2882 3 месяца назад +1

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

  • @Rockodona
    @Rockodona 5 месяцев назад +1

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

  • @littlecurrybread
    @littlecurrybread 5 месяцев назад

    Happy new year! 🎉ty for this as well

  • @KTKettler
    @KTKettler 4 месяца назад

    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!

  • @Nut_cracker-robot
    @Nut_cracker-robot 5 месяцев назад +1

    Thanks for the upload! Happy new year🎉

  • @octaviomontt89
    @octaviomontt89 3 месяца назад

    Hi man

  • @vladimirnicolescu1342
    @vladimirnicolescu1342 4 месяца назад

    Great tutorials! Looking forward to the debuggers next !

  • @flyerhawk
    @flyerhawk 28 дней назад +1

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

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

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

  • @MagnusSmith
    @MagnusSmith 5 месяцев назад +2

    You have done a really good job on explaining the completions

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

  • @viniciusmelquiades
    @viniciusmelquiades 4 месяца назад

    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!

  • @antoinehorguelin3084
    @antoinehorguelin3084 Месяц назад

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

  • @ffedchik
    @ffedchik 5 месяцев назад +2

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

  • @cedric1731
    @cedric1731 5 месяцев назад

    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.

  • @alcb1310
    @alcb1310 5 месяцев назад +2

    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

  • @avinashdubey6503
    @avinashdubey6503 5 месяцев назад

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

  • @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

  • @beaumcdermott8742
    @beaumcdermott8742 3 месяца назад

    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.

  • @kb571994
    @kb571994 4 месяца назад

    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?

  • @user-ti9mv9hb3g
    @user-ti9mv9hb3g 4 месяца назад

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

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

  • @edgardoarriagada9467
    @edgardoarriagada9467 4 месяца назад +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

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

  • @ianespinosa2685
    @ianespinosa2685 5 месяцев назад

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

  • @domojestic4155
    @domojestic4155 5 месяцев назад +1

    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 😁

  • @Naz-pk4ll
    @Naz-pk4ll 4 месяца назад +1

    get well! these are amazing, great work!

  • @scottb4029
    @scottb4029 5 месяцев назад +1

    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.

    • @typecraft_dev
      @typecraft_dev  5 месяцев назад

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

  • @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

  • @pseabrook
    @pseabrook 5 месяцев назад

    Stellar content delivery and stellar stache!

  • @youdontknowme2508
    @youdontknowme2508 5 месяцев назад

    Waiting for the debugger epsiode. And happy new year btw

  • @ChristianSteen-bw7pd
    @ChristianSteen-bw7pd 5 месяцев назад +1

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

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

  • @theredditbandit
    @theredditbandit 5 месяцев назад

    this is just amazing , I cannot wait for debuggers

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

  • @luismedina4904
    @luismedina4904 2 месяца назад

    Awesome videos, first time configuring and using nvim

    • @typecraft_dev
      @typecraft_dev  2 месяца назад

      Thank you and welcome to the party!

  • @lafuenteposible
    @lafuenteposible 4 месяца назад

    please more episodes, this is awesome!

  • @oilcake4392
    @oilcake4392 5 месяцев назад

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

  • @natescode
    @natescode 5 месяцев назад +2

    Yes. My weekend is now complete

  • @TheGogiu
    @TheGogiu 2 месяца назад

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

  • @74Bagas
    @74Bagas 4 месяца назад

    now this, makes me revisit my neovim! super!

  • @bananakid111
    @bananakid111 4 месяца назад +1

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

  • @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.

  • @danielandreasen2293
    @danielandreasen2293 5 месяцев назад

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

  • @user-jh7rn6kd3q
    @user-jh7rn6kd3q 5 месяцев назад +1

    Amazing !! Keep it coming

  • @MrBreakstuff
    @MrBreakstuff 5 месяцев назад

    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.

  • @younglion0451
    @younglion0451 5 месяцев назад +1

    You're fantastic, thank you so much!!

  • @dimitrisdrosos245
    @dimitrisdrosos245 5 месяцев назад +2

    Thanks again for the great tutorial.

  • @iustin4172
    @iustin4172 5 месяцев назад +1

    Love your vids!

  • @justwatchinganime789
    @justwatchinganime789 5 месяцев назад +3

    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

    • @typecraft_dev
      @typecraft_dev  5 месяцев назад +2

      Yes there is a “gitsigns” plugin

  • @mobugs
    @mobugs 2 месяца назад

    this helped me clean up my config, ty