TakeTuesday E04: LuaSnips - Advanced Configuration

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 131

  • @kimnielsen7818
    @kimnielsen7818 2 ปีที่แล้ว +13

    should it be vim.api.nvim_buf_get_lines and not vim.api.nvim_buf_set_lines?

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +8

      Ah, yeah! I thought I had updated that but missed it. Sorry about that. You are correct.

  • @MH-ri2fb
    @MH-ri2fb 2 ปีที่แล้ว +33

    That Primeagen cameo was so alarming and hilarious. Thanks for the demo, I just could not wrap my mind around the docs for function and dynamic nodes.

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +8

      You never know when the primeagen will strike

    • @pakoy3k
      @pakoy3k 2 ปีที่แล้ว +5

      @@teej_dv "Nobody Expects The #theprimeagen Inquisition"

  • @kirashufflerful
    @kirashufflerful 2 ปีที่แล้ว +11

    This is so cool! I am waiting for next episodes of TakeTuesday, so please, don't abandon this series!

  • @imaksimus
    @imaksimus ปีที่แล้ว +4

    Watched this a year ago and forgot how mind blowing it was. Any plans to see the final TakeTuesday on LuaSnip?

  • @ellisonleao
    @ellisonleao 2 ปีที่แล้ว +2

    +1 for making me change the TAB completion after starting seeing this awesome series!

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      of course of course :)

  • @elyezer
    @elyezer 2 ปีที่แล้ว

    It is just me or someone else saw the Emacs logo below the conclusion?
    Great vid, I am already looking forward to the next one. Thank you for the great content.

  • @devonduty
    @devonduty 2 ปีที่แล้ว +9

    Thanks, TJ! These are superb videos, very well explained!

  • @maxverb
    @maxverb 2 ปีที่แล้ว +4

    This is gamechanging, never thought that something as "simple" as snippets could include LSP or treesitter query results.

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      We're going to go over this even more in the next video :)

  • @LinuxLuddite
    @LinuxLuddite 2 ปีที่แล้ว

    Excellent series. Please touch on lambas, and the utils functions in the next one

  • @notgate2624
    @notgate2624 2 ปีที่แล้ว

    Incredible video. I feel like I've come back to programming just in time for some pretty awesome advances in the vim ecosystem. Really glad to see everything plays so well together using Lua. Really appreciate your coverage of this!

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      Awesome :) glad to hear it!

  • @fedupwithit7804
    @fedupwithit7804 ปีที่แล้ว +1

    Love your content. Looking forward to E05

  • @axelsalazar2824
    @axelsalazar2824 2 ปีที่แล้ว

    Awesome!, I'm looking forward to watch the next episode of the take Tuesday series, I hope you can release it soon 😀

  • @Danielo515
    @Danielo515 2 ปีที่แล้ว +1

    this is one of the best guides I've seen on advanced neovim stuff. Fun, yo the point, easy to grasp... wow bro, amazing. Keep it up

  • @lamprospitsillou6325
    @lamprospitsillou6325 2 ปีที่แล้ว +1

    Amazing as always TJ! Also....I laughed so hard at the Prime joke!

  • @KronosaurusRex
    @KronosaurusRex 2 ปีที่แล้ว

    I'm a simple man, I see a TJ new video I like it.

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      I'm a simple man, I see rbnmustdie comment I like it

  • @yttos7358
    @yttos7358 2 ปีที่แล้ว

    Absolute BANGER 💯 of a Take Tuesday! I've already got 3 new snippets, all thanks to you! Looking forward to the next one.

  • @艾曦-e4g
    @艾曦-e4g ปีที่แล้ว +1

    I love these series. How about latex math formulation work with luasnips or other snippet engine. And Looking forward the updating. LOL

  • @2mbst1
    @2mbst1 2 ปีที่แล้ว +1

    Okay. Might be time to make the switch from ultisnips to luasnip this looks great!

  • @matiasmazzanti3345
    @matiasmazzanti3345 9 หลายเดือนก่อน

    Excelente video! I hope you release the next episode!

  • @Aryevang
    @Aryevang 2 ปีที่แล้ว

    The video editing has improved a lot. This vid is gold.

  • @matthewthompsonfamousyoutuber
    @matthewthompsonfamousyoutuber 2 ปีที่แล้ว

    Thanks TJ for another great video. I watched all the way to the end to get those tips and tricks I really needed. Thanks again!

  • @DMWatchesYoutube
    @DMWatchesYoutube 2 ปีที่แล้ว +1

    Great job dude, it's obvious you put a lot of effort into these videos, love it thanks

  • @thaddaeusmarkle1665
    @thaddaeusmarkle1665 2 ปีที่แล้ว +7

    Hey teej, could you do videos about how to use treesitter queries? It's one of the things that I don't know much about when it comes to neovim that I think could really be helpful for automating certain editing tasks.

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +4

      It's on my todo list for sure! Maybe I can do a shorter series just on treesitter or something. There is so much to cover.

  • @davidfactorial4515
    @davidfactorial4515 2 ปีที่แล้ว +8

    Phenomenal, thank you so much for making these

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      Thank you! Very generous of you :)

  • @davidsicilia5316
    @davidsicilia5316 ปีที่แล้ว

    Thanks for this video, these are so much better than reading through docs

  • @stefanplusplus917
    @stefanplusplus917 11 หลายเดือนก่อน +1

    14:38 theprimeagen killed me💀😂

  • @BennyPowers
    @BennyPowers 2 ปีที่แล้ว

    Let's go treesitter apis! I'm especially curious about working with injected languages

  • @dadinhoschannel4003
    @dadinhoschannel4003 2 ปีที่แล้ว

    TJ, my Duuuude!
    Hey... when do you think you will release all awesomeness from TakeTuesday E05? Haha.
    Duuude, I have been anxiously waiting for this.
    Tks, man, you are awesome!
    Best regards

  • @frydac
    @frydac 2 ปีที่แล้ว

    imho funny bits can be divisive, not everyone interested in the information part is going to enjoy it, though some might only watch if there are funny bits and learn something along the way, maybe that is part of the intention.. Anyway for me, the information part heavily outweighs the entertainment part for this type of content. Thank you.
    Most valuable for me are these videos and you explaining stuff to others, usually I know some of the stuff already, but because of your extended experience you've developed a lot of tricks/best practices long the way which increase effectiveness and lower frustration, which imo is something maybe not completely unique, but very much present in your content.

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      Thanks. To be honest, I wouldn't be making videos if I wasn't also making the funny parts (that's part of what keeps it fun and interesting for me!).
      Glad you are learning from the videos though and having fun! :)

  • @jwickerszh
    @jwickerszh 2 ปีที่แล้ว +1

    Great stuff, where is the next one? Also did luasnip change since ? it seems like ls.snippets no longer work (instead I can use ls.add_snippet() )

  • @steveaguay
    @steveaguay 2 ปีที่แล้ว +1

    would love to see a take tuesday on shougo's plugins. He has a really nice range of well made highly configurable plugins. The latest stack he wrote in deno.

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      Yeah, we should do a denops exploration sometime. That would be fun. Shougo is one of the people that inspired me to write plugins! :)

  • @ManiacalMobius
    @ManiacalMobius 2 ปีที่แล้ว

    Awesome vid teej! Loving all the taketuesdays! I'd been sticking to the vsc*** style snippets until now but now I feel like I can actually get going with the new style :D
    One small thing: At first glance I thought this vid was just a rust meme youtube short instead of a taketuesday, since there's no taketuesday in the title or thumbnail like with the other vids. I nearly skipped it 😰. Glad I turned my brain on actually read the title. These videos are too good to pass up

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +2

      Thanks, added it to the title and updated the description. Haha forgot to do that :)

  • @marcoradocchia3461
    @marcoradocchia3461 2 ปีที่แล้ว

    Wow man... suuuper detailed explenation, thanks a lot!

  • @Oswee
    @Oswee 2 ปีที่แล้ว +2

    Thank You for all these superb goodies! :)

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      Thank you for your generosity :) so happy to help!

  • @atla5_
    @atla5_ 2 ปีที่แล้ว

    Thank you, TJ! All of your videos are super valuable. I learned a lot from you ☺️

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      Super happy to hear that! Feel free to tell your friends ;)

    • @atla5_
      @atla5_ 2 ปีที่แล้ว

      ​@@teej_dv Unfortunately, none of my friends are using Neovim and I'm not able to get them on the right way. Sadge

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      @@atla5_ Hmmm, have you considered new friends? 😂
      Nah, I understand. None of my irl friends are even coders haha

    • @atla5_
      @atla5_ 2 ปีที่แล้ว

      ​@@teej_dv Even if I would, they are pretty rare anyways😄

  • @lucasefe
    @lucasefe 2 ปีที่แล้ว

    This is super helpful. Thanks so much, TJ.

  • @iduran
    @iduran 2 ปีที่แล้ว

    Hi TJ. I was wondering where to get those icons in your statusline from (no color icons). I took a look at your config repo but couldn't find any reference to those there. Thanks for these two videos on luasnip btw, they were really helpful!

  • @murphykuffour6034
    @murphykuffour6034 2 ปีที่แล้ว

    the editing is off the charts bro

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      Shoutout to my boy flip edits. We've been working on our YT game together :)

  • @joselima7655
    @joselima7655 2 ปีที่แล้ว

    Thanks for the video, i wish i could do more. but hopefully you can get a cup of tea or coffee or whatever

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      Never apologize for supporting someone :) I will get my wife a ice cream to thank her for letting me take the time to record and make the videos

  • @dadinhoschannel4003
    @dadinhoschannel4003 2 ปีที่แล้ว +1

    Awesome video, man!
    I would be interested in setting up your nvim dotfiles from ground up, if you are interested in something like this.
    A video with IDK, 2h+

  • @Bugayok
    @Bugayok 9 หลายเดือนก่อน

    Personally for me "TakeTuesday" is the best Neovim content so far. Why have you stopped making it?
    Still waiting for advanced LuaSnip at E05...

    • @teej_dv
      @teej_dv  9 หลายเดือนก่อน +1

      i may have a little surprising coming your way in the next month :)

  • @cuongvan1730
    @cuongvan1730 2 ปีที่แล้ว

    Very nice guide. How can I have that super cool big arrow and not equal symbol?

  • @codehashira
    @codehashira 2 ปีที่แล้ว

    Been waiting for this, thank you so much TJ!

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      It's so cool to me that people are excited about the videos :) so happy you are enjoying it!

  • @twiggeh3577
    @twiggeh3577 2 ปีที่แล้ว

    Love the series ! Can't wait to see more 😍❤

  • @Guilherme-qk9so
    @Guilherme-qk9so 2 ปีที่แล้ว

    super cool! thanks for this!

  • @eduardoarandah9990
    @eduardoarandah9990 2 ปีที่แล้ว

    This is awesome TJ

  • @n0ks
    @n0ks 2 ปีที่แล้ว

    A M A Z I N G

  • @davidjosephs7368
    @davidjosephs7368 2 ปีที่แล้ว

    Thank you so much!

  • @matthias2447
    @matthias2447 2 ปีที่แล้ว +2

    Please more Rust content in the context of nvim and lua. Love it.

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +2

      Oh, any chance I get to talk about Rust, I will. Don't worry about that.

  • @axeldahlberg7043
    @axeldahlberg7043 2 ปีที่แล้ว

    Loving this, keep it up TJ! :)

  • @jacquesboubou
    @jacquesboubou หลายเดือนก่อน

    Great content!

  • @mikeyim9985
    @mikeyim9985 ปีที่แล้ว

    Wow these are gems thank you ❤️

  • @VasiliSyrakis
    @VasiliSyrakis 2 ปีที่แล้ว

    snippet inception

  • @andrewiglinski148
    @andrewiglinski148 ปีที่แล้ว

    Oh my lord I’m so stoked that I’m finally getting more comfortable on vim than I ever was on vsCode that I kinda have a little tingle in my pants.

  • @anarchymatt
    @anarchymatt 2 ปีที่แล้ว

    He said currying!
    Haskell btw

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      I do consider myself a dysfunctional programmer

  • @Nerd2k7
    @Nerd2k7 2 ปีที่แล้ว

    I'm missing #TakeTuesday 😥 @teej_dv will you be refueling this beauty any time again? Thanks for the past episodes btw!!!

  • @yourdadsbestfriend7101
    @yourdadsbestfriend7101 2 ปีที่แล้ว

    is there a way to visually select the contents of the snip.env.SELECT_RAW

  • @Alpha_Dev
    @Alpha_Dev 2 ปีที่แล้ว

    Thanks, amazing content.

  • @ayoubelmhamdi7920
    @ayoubelmhamdi7920 2 ปีที่แล้ว

    i'am waiting for luasnip ep5, where are you Mr `teej`
    Are there new episodes with tree-sitter?

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +2

      haha i will work on it soon hopefully. I had a lot of IRL stuff come up recently, so I've been behind on some of the videos that take a lot of time to creat.

  • @davidsicilia5316
    @davidsicilia5316 2 ปีที่แล้ว

    I need to get this asap. Side question: are you using an auto formatter for your Lua code? If so, which one?

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      I use stylua

  • @albertlee9592
    @albertlee9592 2 ปีที่แล้ว

    Thanks!

    • @albertlee9592
      @albertlee9592 2 ปีที่แล้ว

      I've also meant to add this: I sense the massive level up of the quality of your tutorials and video editing!!! So enjoyable and informative. Thank you TJ

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      Thank you very much! I've been having such a blast trying to level up the production quality and content. It has been fun and challenging for me. Hopefully I can keep learning new stuff :)

  • @sc0820
    @sc0820 ปีที่แล้ว

    so fun ^^

  • @withercubes3295
    @withercubes3295 2 ปีที่แล้ว

    Are you using the kitty terminal? Because the bottom tabs look a lot similar like in kitty.

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      you are correct!

  • @architbhonsle7356
    @architbhonsle7356 2 ปีที่แล้ว

    What's that drawing program though?

  • @trucosfreak
    @trucosfreak 8 หลายเดือนก่อน

    How to make snippets for specific filetype like gitcommit message?? I can´t do it:C

  • @relmnight8761
    @relmnight8761 2 ปีที่แล้ว

    Hey Teej!
    Looking through your Dotfiles, I am a bit confused as to how you are adding your language specific Snippets.
    I see that you build a table with the different snippets, but I don't quite understand how you are calling them since I can't find the place where you are adding them into the luaSnip config.

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      A couple people have asked so I will probably make a short video (not take tuesday) explaining how I do that

  • @bryantfoo9816
    @bryantfoo9816 2 ปีที่แล้ว

    thanks again tj!!

  • @marufrudhra2712
    @marufrudhra2712 2 ปีที่แล้ว

    How to print(vim.inspect) while in insert mode, my print output is blocked by INSERT/SELECT indicator

  • @santiagoalejandrogonzalezb2462
    @santiagoalejandrogonzalezb2462 2 ปีที่แล้ว

    How did he made ui.input() look like that?

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      This plugin! github.com/nvim-telescope/telescope-ui-select.nvim/

  • @KronosaurusRex
    @KronosaurusRex 2 ปีที่แล้ว

    By the way, how do you store and config this snippets files?
    If it's in the first video don't even answer, I'll watch again later cause I don't remember a lot about it.

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      I haven't gone over how I have my snippets setup. Maybe I will do side video to explain

  • @nyxkrage
    @nyxkrage 2 ปีที่แล้ว

    What are these iMovie transitions?

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      Take it up w/ flip. He's the transition master

    • @nyxkrage
      @nyxkrage 2 ปีที่แล้ว

      @@teej_dv Ok, ill take the bait, who is flip?

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      @@nyxkrage flip is the guy I pay to edit. It's not a joke.

  • @sevos
    @sevos 6 หลายเดือนก่อน

    He never released that next video, did he?

  • @nickskywalker2568
    @nickskywalker2568 2 ปีที่แล้ว

    Where can I buy?

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      Anywhere you can find Lua haha

    • @nickskywalker2568
      @nickskywalker2568 2 ปีที่แล้ว

      @@teej_dv sold, I wanna buy lua too now

  • @ayoubelmhamdi7920
    @ayoubelmhamdi7920 2 ปีที่แล้ว

    you are recording this video in 03/04/22 😁
    too late Teej

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      Haha, I should not have used the date thing cause then you can see how long I've been working on trying to make the video perfect!

    • @ayoubelmhamdi7920
      @ayoubelmhamdi7920 2 ปีที่แล้ว

      @@teej_dv thank you teej, for your perfect job

  • @rmpr3933
    @rmpr3933 2 ปีที่แล้ว

    45th

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      And I love you just as much as every comment. Thanks :)

  • @ayoubelmhamdi7920
    @ayoubelmhamdi7920 2 ปีที่แล้ว

    vscode will die after this video

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      A man can certainly dream haha

  • @evakuator8118
    @evakuator8118 2 ปีที่แล้ว

    Rust in the thumbnail, going all on clickbait I see

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      Rust in every aspect of my life

  • @hamzashezad
    @hamzashezad 2 ปีที่แล้ว

    bruh

  • @AhmedMOHAMED-hl1hd
    @AhmedMOHAMED-hl1hd 2 ปีที่แล้ว +1

    okay can someone plz tell me why should I spend my whole time configuring my editor instead of learning how to code projects that will help my resume to be good

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      Dang, let's pack it up. ;)
      Best answer is because we have fun doing it! I will release a video later talking more about this actually. We're in the process of editing it right now.

    • @AhmedMOHAMED-hl1hd
      @AhmedMOHAMED-hl1hd 2 ปีที่แล้ว

      i know it is really fun to do but also so addictive that it wasted my time way to much man good luck and I love your videos

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว +1

      @@AhmedMOHAMED-hl1hd but is it a waste if you're taking time to learn new concepts, ideas, ux, ui and to make your day more fun? Doesn't sound like a waste to me. 😁

    • @AhmedMOHAMED-hl1hd
      @AhmedMOHAMED-hl1hd 2 ปีที่แล้ว

      @@teej_dv i am still new to coding with experience of almost 2 years and linux experience 3 years I still need to learn a lot so for my case it is a waste of time sadly btw linux is my only and main system right now too and tbh lua cmp is a nightmare for me cuz I do not have enough experience yet but soon enough I will get there

  • @try1785
    @try1785 2 ปีที่แล้ว +1

    What is this video doing here

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      oops :) nothing to see here

  • @joselima7655
    @joselima7655 2 ปีที่แล้ว

    Thanks!

    • @teej_dv
      @teej_dv  2 ปีที่แล้ว

      Wow! Thank you!!