TakeTuesday E01: nvim-cmp

  Рет қаралды 65,124

TJ DeVries

TJ DeVries

Күн бұрын

Пікірлер: 255
@teej_dv
@teej_dv 3 жыл бұрын
Comment below with other plugins you'd like to see in this series or with any other feedback you have! Thanks for watching :)
@noblesavage149
@noblesavage149 3 жыл бұрын
Have you tried Olical/aniseed? Thoughts?
@teej_dv
@teej_dv 3 жыл бұрын
@@noblesavage149 for some reason, it seems like yt keeps making my comments disappear. So sorry if you see three of them haha. But I have not tried it. I also don't know lisp, so I don't think I would be the right person to explore it.
@noblesavage149
@noblesavage149 3 жыл бұрын
@@teej_dv That's ok, my one seems to have disappeared also. I think yt is going down the proverbials at the moment!
@jmann277
@jmann277 3 жыл бұрын
nvim-dap pleeeease
@danymat
@danymat 3 жыл бұрын
Neogen (it’s an annotation generator using treesitter) And Neorg
@BryanBaron55
@BryanBaron55 3 жыл бұрын
Nvim surprised me every single day, I can tell that I'm not an expert, (I'm learning how to setup Nvim for myself yet, btw) but things like this inspire me to go on with this beautiful code editor... Great video and job TJ, you're the best.
@teej_dv
@teej_dv 3 жыл бұрын
What a really nice message! Thanks! I'm hoping to make a bunch more of these (over time haha, they take quite awhile)
@korney4eg
@korney4eg 3 жыл бұрын
Hey TJ. It's super nice idea for videos to take one plugin/component and become familiar with it.
@teej_dv
@teej_dv 3 жыл бұрын
Glad to hear it! Glad you found it useful!
@andrewhaeffner6114
@andrewhaeffner6114 3 жыл бұрын
Absolutely amazing video. Entertaining, informative and really well laid out. This content is the bomb! Becoming exposed to the features of nvim by you & the rest of the community is greatly broadening my horizons with respect to developing software. I am greatly appreciative of the effort that you put into this video and your other content. You’re the man, TJ!
@teej_dv
@teej_dv 3 жыл бұрын
Thank you so much :)
@diarmaidmac2149
@diarmaidmac2149 3 жыл бұрын
What a great idea TJ! This is the sort of trials and tribulations that us mere mortals go through so it is nice to see it from the eye of an experienced "insider" 😀👍
@teej_dv
@teej_dv 3 жыл бұрын
Glad to hear it!
@EuphoricRaccoon
@EuphoricRaccoon 3 жыл бұрын
Dude, seriously thank you for this video. I love how you go step by step explaining parts of the basic setup and configuration for the plugin (instead of simply copy this, paste that). My migration from completion-nvim to this one was long overdue and this video was just perfect, worked like a charm! Your "explain one plugin, install, setup, config and features" videos are great!
@teej_dv
@teej_dv 3 жыл бұрын
So happy to hear :) I've got another one almost done!
@mantassidabras2921
@mantassidabras2921 3 жыл бұрын
That's exactly what I need! How a proficient vim user setups his config and uses real world scenarios. And also kudos for warning about tab selection!
@devonduty
@devonduty 3 жыл бұрын
Hey TJ, thanks for this great video, I really like the format! Best regards, David
@maniac5411
@maniac5411 Жыл бұрын
THESE VIDEOS ARE AMAZING, PLEASE NEVER STOP THEM! Huge thanks to you Tj, I was so lost in regards to completion in neovim and this cleared up everything for me!
@chrisjames278
@chrisjames278 3 жыл бұрын
Awesome video. Looking forward to the future TakeTuesdays! Will be looking forward to the luasnip one. Thanks TJ.
@tamatotodile
@tamatotodile 8 ай бұрын
2 years later, this video still helping lost souls like me. Thanks teej :D
@teej_dv
@teej_dv 8 ай бұрын
haha that's awesome!
@Boroujerdi
@Boroujerdi 3 жыл бұрын
nvim-dap. Never tried debugging in a text editor. It is the one thing preventing me from completely switching to nvim
@barower
@barower 3 жыл бұрын
This
@teej_dv
@teej_dv 3 жыл бұрын
@@barower It's on the list :) A few plugins away but I will go over this plugin in the series hopefully
@WiseGuyFTW
@WiseGuyFTW 3 жыл бұрын
This is such a useful video, no other video gives an intro to get things started and a background to what different sources do. Thanks!
@Amapramaadhy
@Amapramaadhy 3 жыл бұрын
Seriously face melting stuff. Really enjoyed the format. Chock full of actionable items. Thanks TJ.
@teej_dv
@teej_dv 3 жыл бұрын
Awesome! :) I will try to keep to that standard!
@chandrappamenasinahal7785
@chandrappamenasinahal7785 3 жыл бұрын
Very very thanks for all the efforts that you guys are putting make such valuable content, from which nvim users like me getting lots of benfits... Thanks you very much.. This is my first comment i am writing in youtube for any of channel.
@teej_dv
@teej_dv 3 жыл бұрын
Wow! That's very kind of you! So glad you enjoyed it!
@SaMusz73
@SaMusz73 Жыл бұрын
Great tutorial in the 'insides' of neovim. Learned a lot. Please keep up the format as is, not too long and not just out of the help docs
@hendrykhoza4782
@hendrykhoza4782 3 жыл бұрын
Thank you. waiting for the lua snippets video
@imaksimus
@imaksimus Жыл бұрын
Decided to watch this spontaneously. Just as good as the first time. Really miss TakeTuesday.
@someoneyouveneverheardof
@someoneyouveneverheardof 3 жыл бұрын
I would say these videos are useful and fun to watch. I would watch them even if I knew most of the stuff, becoz there's always something I don't know. And you guys are the experts and I always enjoy going more deep which you did in this video. I hope videos like these keep coming! :)
@stev0rev0
@stev0rev0 3 жыл бұрын
Thanks so much for this, TJ - I learned a ton! A co-worker convinced me to watch this and make the switch from coc and it definitely worked. So happy with the result. Looking forward to more.
@user-fq2ty
@user-fq2ty 2 жыл бұрын
what I did in mappings was change for and for . So basically I can scroll words without move fingers almost, and to prevent tab use. ( and for Dvorak users)
@Pau1danelli
@Pau1danelli 3 жыл бұрын
This was amazing thank you. I’d love to see you go through your LSP setup, explaining what you do and why. I’m new to lua, so seeing someone explain what is happening makes it way simpler than code diving dot files.
@teej_dv
@teej_dv 3 жыл бұрын
A builtin LSP video would probably be also be good for a simple setup of some of the features. Thanks for the idea!
@phantomwhale
@phantomwhale 2 жыл бұрын
Just found these - great stuff! My complete wasn't working, turned out to be something unrelated of course, but getting a solid run through of what SHOULD be there and how it hands together really gave me a bunch of confidence with my autocomplete setup; so when it does flake out, I know it's something else I stuffed up in future (hopefully!)
@pigozs
@pigozs 2 жыл бұрын
Thank you! I've been using coc for a long time. This video and the one about LSP helped me so much in setting everything up.
@willernst
@willernst 3 жыл бұрын
Sooo good. I love the well-paced and comprehensive walk-through.
@teej_dv
@teej_dv 3 жыл бұрын
Glad the pacing was helpful. It's hard to find the right pace but not take 4 hours haha
@lucastperez
@lucastperez 3 жыл бұрын
The GH Issues thing was very impressive! Really nice video :D
@teej_dv
@teej_dv 3 жыл бұрын
Excellent!
@lpanebr
@lpanebr 3 жыл бұрын
I really enjoyed this format and the content is excellent! I'll just ditch my prime's yt subscription and follow you now! 😂😂
@teej_dv
@teej_dv 3 жыл бұрын
Don't leave Prime. He's the reason I stream!
@elyezer
@elyezer 3 жыл бұрын
What an excellent video and series. Thanks for putting all the effort and coming with this greatly explained video. After this I am considering giving nvim-cmp a try for sure.
@teej_dv
@teej_dv 3 жыл бұрын
ELYEZER YOU HAVE TO BE ON NVIM CMP OR YOU ARE GETTING BANNED FROM TWITCH KAPPA
@pawebakiewicz6786
@pawebakiewicz6786 2 жыл бұрын
I loved this format TJ. Looking forward for more :D
@teej_dv
@teej_dv 2 жыл бұрын
Thanks, had a bunch of stuff happen IRL but hope to get back to doing these soon!
@AntonKastritskiy
@AntonKastritskiy 3 жыл бұрын
Awesome format, props for the effort it took to prepare this content. Definitely picked a couple of things that I will be taking to my setup. Look forward seeing the upcoming ones!
@gavinvales8928
@gavinvales8928 3 жыл бұрын
you nvim guys are absolute magicians
@teej_dv
@teej_dv 3 жыл бұрын
haha thanks!
@Oswee
@Oswee 3 жыл бұрын
Don't even consider to become evil person! :) Keep sharing this superb stuff. Learning so much in every single minute!!! :) :) You have a true talent!
@ryanseipp6944
@ryanseipp6944 3 жыл бұрын
Would love to see more Take Tuesdays! Learned a lot from this video already. Would also like to see an explanation on how your configurations in `after/plugin/*.lua` gets auto-loaded
@teej_dv
@teej_dv 3 жыл бұрын
It's automatic now! Just get on a newer release and they get loaded.
@nodidog
@nodidog 3 жыл бұрын
Thanks for your uploads TJ, they're really helpful!
@teej_dv
@teej_dv 3 жыл бұрын
Excellent! So happy to hear that!
@starggoo
@starggoo 3 жыл бұрын
This is great. Made some changes to my setup based on the vid. Looking forward to more.
@ChillinAtDaClub
@ChillinAtDaClub 3 жыл бұрын
Really enjoyed this and look forward to more plugin walkthroughs
@elsombrero105
@elsombrero105 3 жыл бұрын
What a great content! Thank you, TJ! Btw, it would be great to see something about the debugging in vim/neovim. Cheers!;)
@bramlo411
@bramlo411 3 жыл бұрын
You could check out The Primagen's vid about Vimspector
@teej_dv
@teej_dv 3 жыл бұрын
I think I will add doing nvim-dap to my list of things to do :) thanks for the suggestion!
@sebas.random
@sebas.random 3 жыл бұрын
Hey TJ, you are good at teaching! Thanks a lot. I'm looking forward to the next episodes. How about exploring some wiki plugins? (I saw you are not using vimwiki anymore)
@teej_dv
@teej_dv 3 жыл бұрын
Yeah, maybe I will try out one or more of the org-mode plugin replacements. Perhaps vimwiki could be interesting as well.
@adityasinha3669
@adityasinha3669 3 жыл бұрын
Amazing format buddy ✌🏽
@teej_dv
@teej_dv 3 жыл бұрын
Thanks :) I am enjoying it!
@gersongallo6892
@gersongallo6892 3 жыл бұрын
I love this format, keep them coming
@shadowfax92
@shadowfax92 2 жыл бұрын
Thanks!
@seanbanko1442
@seanbanko1442 3 жыл бұрын
What is your rationale for why tab completion is bad? It feels like a sensible default to me considering it mirrors tab completion in a browser search/address bar. Right now using Ctrl-N in Neovim and tab in my browser has me accidentally opening a new browser windows left and right.
@teej_dv
@teej_dv 3 жыл бұрын
It's about 90% a joke, in general it's just because I like using one key to do one thing (not have tab be overloaded to do 20 different things) and I like using defaults if they are not annoying in nvim. So I think using c-n and c-p is the default and a lot of other menus / items / selections use those within vim, so I think it's good to keep those in mind. But you can use whatever makes you happy :)
@JeremyBaumont
@JeremyBaumont 3 жыл бұрын
Great content, great format, love it, I would love the same kind of walk-through into colorbuddy and your color setup.
@teej_dv
@teej_dv 3 жыл бұрын
Ah! Colorbuddy would be fun to do :) I'd have to clean up some code for it I think, but it'd be a good one to revisit. Thanks, I am adding it to the list!
@farzadmf
@farzadmf 3 жыл бұрын
First time watching a video from you (I knew about you, but I always thought your videos and explanations would be too advanced for me 😛) But, GREAT video! Very nice and detailed explanation. I subscribed and I hope I see more videos of this format 🙂
@teej_dv
@teej_dv 3 жыл бұрын
Super glad to hear. I hope to keep making more in the TakeTuesday series.
@farzadmf
@farzadmf 3 жыл бұрын
Looking forward to them 🙂
@RoryIsNotACabbage
@RoryIsNotACabbage 3 жыл бұрын
This was really well explained TJ, thanks
@cafce2567
@cafce2567 3 жыл бұрын
To get the auto import going i had to update the capabilities with `require("cmp_nvim_lsp").update_capabilities(vim.lsp.protocol.make_client_capabilities())` and add them to the lsp servers capabilites in it's setup. Everything else works great thank's for the in depth explanation.
@jotarokujo6099
@jotarokujo6099 3 жыл бұрын
Nice explanation. Thank you!
@GaetanLepage
@GaetanLepage 3 жыл бұрын
Thank you TJ for sharing this great content !
@teej_dv
@teej_dv 3 жыл бұрын
My pleasure!
@yanuar1420
@yanuar1420 3 жыл бұрын
Thank you TJ, I have been struggling to know what nvim-cmp and those following plugins does. and why it still need Ultisnips in my case. This video is a Godsend for me. Very understandable, explain what those plugins and config does. *chef kiss
@ericsquires8896
@ericsquires8896 3 жыл бұрын
Thanks for the video! What keys you are entering at 21:07 where the function arguments are added and you can jump between "k", "v" and the end of the function? I can't seem to replicate that behavior.
@teej_dv
@teej_dv 3 жыл бұрын
After "accept"ing the solution (which is for me), I can move with which is my luasnip "jump-to-next" key.
@tokiomutex4148
@tokiomutex4148 3 жыл бұрын
Why is the Tab/Shift-Tab thing wrong?
@nathanhyland
@nathanhyland 3 жыл бұрын
Nothing else in vim works that way. Just more consistent and idiomatic not to.
@tokiomutex4148
@tokiomutex4148 3 жыл бұрын
@@nathanhyland So tab completion is a pathway to a non-portable workflow
@teej_dv
@teej_dv 3 жыл бұрын
@@tokiomutex4148 That is a great way to say it. In general, if the default shortcuts are not TERRIBLE, then I recommend keeping them the way they are. Often times other things will eventually make sense and it prevents you from overriding any other builtin workflows.
@tokiomutex4148
@tokiomutex4148 3 жыл бұрын
@@teej_dv The default shortcuts are well designed unlike my naive configuration which may overwrite (useful) default behavior that I was not aware of at the time of writing.
@saikoushikmacha7379
@saikoushikmacha7379 3 жыл бұрын
great video waiting for the LuaSnip
@teej_dv
@teej_dv 3 жыл бұрын
Hopefully in the next few weeks :)
@n0kodoko143
@n0kodoko143 3 жыл бұрын
:h ins-completion - likely just changed the way that I will use completion. I appreciate the heads up. Soon to be former 'tab' user. Seems worth the immediate workflow hit that I'll take getting up to speed.
@lvgsredarmy8776
@lvgsredarmy8776 3 жыл бұрын
"When I type this *octothorp*..." 😆 TJ you're supposed to be a millenial, not a boomer 😛 that's "hashtag" to you haha Regardless, thanks as always TJ. I always learn a ton from your videos! This one in particular was *packed* to the brim with goodies about nvim-cmp, a plugin that I've used for a while but haven't explored the API of very much. I have several ideas now about how to make my Neovim experience even better with nvim-cmp after watching your video 😃. Your work in the Neovim community as always is much appreciated :)
@teej_dv
@teej_dv 3 жыл бұрын
I will never give up octothorp. IT IS SO FUN TO SAY!!!!!
@axeldahlberg7043
@axeldahlberg7043 3 жыл бұрын
The gh_issues source is really cool! One thing I was thinking is if it would be possible to set the "kind" (or what it is called) to be the issue title? Such that you can see them all in the menu, instead of the generic "Text". Great video, already looking forward to the next :)
@teej_dv
@teej_dv 3 жыл бұрын
Yeah! I didn't explore that part, but I think you can set the kind to be something else and that will change the "Text" thing you see.
@Dieterbe
@Dieterbe 3 жыл бұрын
Very interesting. thanks TJ. I was able to follow along and got the gh_issues plugin working too. It's interesting that it just shows all the numbers, and you still have to iterate them manually to visually inspect them. This makes me wonder if it might make sense to use telescope as a way to drill down to a single completion item, as it allows to search on keywords that are not part of the ultimate result (e.g. the issue body, which we don't want inserted as a completion), and allows fuzzy searching, of course...
@teej_dv
@teej_dv 3 жыл бұрын
Yeah, you could make a telescope picker that just inserts the selected value and grab all the issues from github as well. It would not be super complicated to do if you already have the gh_issues plugin working!
@aklsh22
@aklsh22 3 жыл бұрын
Treesitter next! Btw, I’m curious as to how you get the invisible characters like newlines show up.
@teej_dv
@teej_dv 3 жыл бұрын
Yes, good call for doing tree sitter. I will add that to the list. You are looking for "help listchars"
@_vikramhegde_
@_vikramhegde_ 3 жыл бұрын
Looking forward to more of these 🙌
@marwanfikrat7716
@marwanfikrat7716 3 жыл бұрын
Excellent. Looking forward to many more episodes of TakeTuesday. My most lacking area of (neo)vim is the native ft-plugins it comes with. No idea how any of that works, and didn't find the builtin docs to be too helpful (I say this lightly because I probably didn't look in the right place or gave it enough of my time). Thanks for all your work TJ, it really does make a difference to us, that watch, and aren't so tied up with the development and ecosystem of what is neovim.
@teej_dv
@teej_dv 3 жыл бұрын
Maybe check ":help ftplugin". That might be helpful.
@ciacconas4903
@ciacconas4903 3 жыл бұрын
More Take Tuesday episodes pls!!
@teej_dv
@teej_dv 3 жыл бұрын
Part 1 of LuaSnip will hopefully be done soon :)
@andresgutgon
@andresgutgon 3 жыл бұрын
Hi @TJ DeVries great content. I implemented some of your code but I had super TAB and I feel more easy to use it. Would be awesome if you could do a small video explaining with detail why you think using tab is not a good idea. Thanks!
@teej_dv
@teej_dv 3 жыл бұрын
That's a good idea, I'll do it sometime :)
@nraw_
@nraw_ Жыл бұрын
@@teej_dv Are we there yet? I'd also be interested :)
@PratyushBharati
@PratyushBharati 3 жыл бұрын
Hey TJ, can you help me understand why nvim-lsp and it's associated ecosystem setups are really much more hands on (or maybe I'm doing it wrong) as compared to CoC. I have had to install everything from source as my org runs RHEL7.8 so I didn't even have node, rust, lua stuff. And on the two occasions I tried to setup nvim-lsp, it just took too long without having root access. Any words of advice?
@PratyushBharati
@PratyushBharati 3 жыл бұрын
Side note... I'm not a career programmer. I'm an electronics engineering, but just have lot of python stuff to develop for certain chip testing automation
@PratyushBharati
@PratyushBharati 3 жыл бұрын
Figured it out. Nvm. I love it now. So fast holy shit.
@teej_dv
@teej_dv 3 жыл бұрын
@@PratyushBharati haha I love this thread.
@PratyushBharati
@PratyushBharati 3 жыл бұрын
@@teej_dv Its actually allowed me to make an even more streamlined setup file, cause all node modules can be consolidated and initialised in a specific dedicated location rather than have each user of my .rc have to CocInstall
@kevinlee6416
@kevinlee6416 3 жыл бұрын
Great work👍👍, very helpful thanks
@AelDiaoul
@AelDiaoul 3 жыл бұрын
What are your cmp select prev/next mappings? I tried default but it seems to break the cmp window.
@teej_dv
@teej_dv 3 жыл бұрын
Just or . You don't need to prefix with to _move_ between the selections, that is to enter into a certain type of ins-completion mode.
@serge_schumacher
@serge_schumacher Жыл бұрын
Hey TJ! Thank you for your work, I've learned a lot by watching videos you're created over these years. I have a question: How do I make nvim-cmp source dap on runtime (on debugging). Let's say I'm using python or query django object. So, I want my autocompletion suggest all dynamic fields containing in this object. nvim-dap has this info, but all autocompletion sources suggest only static data. I've tried rcarriga/cmp-dap with no luck. Before I start writing my completion source, can you give me a tip on a ready-to-use solution? Thanks!
@tyrox9
@tyrox9 3 жыл бұрын
Really good video thanks!
@avimehenwal
@avimehenwal 2 жыл бұрын
amazing video, very useful content
@teej_dv
@teej_dv 2 жыл бұрын
Thanks :)
@baka_geddy
@baka_geddy 3 жыл бұрын
Do Emacs next!
@teej_dv
@teej_dv 3 жыл бұрын
Sorry, I don't review Operating Systems.
@nyxkrage
@nyxkrage 3 жыл бұрын
@@teej_dv Review evil-mode then, AS A NEOVIM CORE DEV
@jmann277
@jmann277 3 жыл бұрын
Fantastic content! Greatly appreciated.
@mikloscsepella2743
@mikloscsepella2743 3 жыл бұрын
great content. keep 'em coming plz! would love one about LuaSnip. thank you
@teej_dv
@teej_dv 3 жыл бұрын
I have a video almost done for comment.nvim and then the next videos will be about LuaSnip!
@mikloscsepella2743
@mikloscsepella2743 3 жыл бұрын
@@teej_dv thats exciting ty!
@cristianinujazznight3044
@cristianinujazznight3044 2 жыл бұрын
Hi, is there a way to call cmp.complete while typing? Just to have the same effect from coc.nvim
@FaintArt
@FaintArt 10 ай бұрын
Hey teej, Can you show you'd configure github copilot with this too?? Also you are really doing a great job! keep it up!!
@ayoubelmhamdi7920
@ayoubelmhamdi7920 3 жыл бұрын
you are a great teacher،
@rblab5
@rblab5 3 жыл бұрын
Thank you TJ... great content!
@wormholecowboy
@wormholecowboy Жыл бұрын
Hey TJ, how can you get cmp to work with npm libraries?
@muhammadraza7231
@muhammadraza7231 Жыл бұрын
I am finding very difficult to add jump to next or previous placeholder. Help me Brother
@PaulJacobson
@PaulJacobson 3 жыл бұрын
Thanks for this video. I found this helpful.
@ak2f
@ak2f 3 жыл бұрын
Thank you, really helpful video. Next maybe nvim-dap, how to setup etc.?
@teej_dv
@teej_dv 3 жыл бұрын
It's on the list!
@kyp0717
@kyp0717 3 жыл бұрын
If you don't use TAB for completion, what do you use? Please refer me to past video that discuss your prefer method for triggering completion. Thanks.
@teej_dv
@teej_dv 3 жыл бұрын
I use :help ins-completion for triggering completion when I need to, and let nvim-cmp do the rest in terms of auto-completing. I will try and make a video about it. It's 90% a joke anyway. You should do what makes you like Vim the most :)
@dontwanttousemyrealnametol6765
@dontwanttousemyrealnametol6765 3 жыл бұрын
How would you do something similar to "g:mucomplete#can_complete" (lifepillar/vim-mucomplete) with nvim-cmp?
@teej_dv
@teej_dv 3 жыл бұрын
Hmmm, I'm not familiar with this. I don't know of good analogues. Sorry!
@majestic2814
@majestic2814 3 жыл бұрын
How would anyone use the default config with = cmp.mapping.confirm and select = true? It makes you unable to insert new lines. Am I missing something obvious about completion or new lines or is noone using the default?
@teej_dv
@teej_dv 3 жыл бұрын
I think it's only applicable when the completion menu is visible (so after it's not visible anymore, enter makes you do a new line)
@window.location
@window.location 3 жыл бұрын
Awesome tutorial Tj
@vellankiindeevar5530
@vellankiindeevar5530 3 жыл бұрын
this is really great sir . we also want a video on telescope.nvim
@teej_dv
@teej_dv 3 жыл бұрын
hehe a bit too self promotion for the first one, but I will keep that in mind :)
@guilhermeferreira2068
@guilhermeferreira2068 3 жыл бұрын
Hey i've noticed that when u changed your config you run some tj#save_and_exec and that just reload your config, how can i reload with a keybind for lua config files?
@teej_dv
@teej_dv 3 жыл бұрын
I re-run files by doing `:source %`, but it just checks to make sure it's a valid filetype to do so.
@lpanebr
@lpanebr 3 жыл бұрын
Would it be possible to enabled the gh completion for comments within file to allow referencing issue numbers in Todo comments for example?
@teej_dv
@teej_dv 3 жыл бұрын
I think someone actually did that already on github! I It's like cmp-git or something like that.
@lpanebr
@lpanebr 3 жыл бұрын
@@teej_dv thanks!!!
@windsweptflutters
@windsweptflutters 2 жыл бұрын
Thank you so much for this video!
@teej_dv
@teej_dv 2 жыл бұрын
So glad you liked it!
@jjzunino
@jjzunino 3 жыл бұрын
Hi TJ, this is the third time I'm posting this question because for some reason yt keeps deleting it. I was wondering whether you're using a different version of gruvbuddy since I can't get the same syntax highlighting as you
@teej_dv
@teej_dv 3 жыл бұрын
Hmm, that's pretty weird -- do you have tree sitter installed? If so and it's not working, make an issues on my github for one of the repos and we can see if we could fix it.
@QuentR1994
@QuentR1994 3 жыл бұрын
Really enjoyed that! Thanks 👏
@dim-2d
@dim-2d 3 жыл бұрын
Great video, as usual! I was wondering if (in a future video) you could explain in a bit more details for noobs like me what the difference/relationship/overlap of treesitter and LSP is. I mean they both do syntax highlighting for example? Should I install both? Sorry I tried reading on it but I got a bit confused
@teej_dv
@teej_dv 2 жыл бұрын
They have different focuses. LSP is focused on project level intelligence, tree-sitter is focused on file level intelligence. In generally tree-sitter is doing the highlighting. You can install both. I have a video somewhere on m channel w/ a brief comparison
@dim-2d
@dim-2d 2 жыл бұрын
@@teej_dv yeah I did a bit more reading on the subject and I have a pretty clear picture now, the comment is a bit old. Anyway, thanks Teej!
@qwertyasdf7615
@qwertyasdf7615 3 жыл бұрын
Ooo yeahhh!! Nvim dap!
@luissolanodev
@luissolanodev 3 жыл бұрын
Hey TJ, great video!! I wanted to know a little more about on why is that you don't use and think is bad to use tab to autocomplete? Thanks!
@teej_dv
@teej_dv 3 жыл бұрын
I'm mostly joking. Chatted a short bit about it here: www.reddit.com/r/neovim/comments/qdj7ir/comment/hhp4c27/?context=3
@mancesnowdon1757
@mancesnowdon1757 3 жыл бұрын
Hey I think the cmp gh plugin was really cool but I don't know why, I am having issue with the vim.json.decode method: attempt to index field 'json' (a nil value). Does someone have an idea what might be the issue ?
@teej_dv
@teej_dv 3 жыл бұрын
Ah, it's only available on nvim 0.6 -- I had forgotten that it was a nightly on feature. You can do it instead with vim.fn.json_encode and decodes or use nightly and then it should work.
@mancesnowdon1757
@mancesnowdon1757 3 жыл бұрын
@@teej_dv Huge thanks !
@davidsicilia5316
@davidsicilia5316 3 жыл бұрын
Thanks for making these videos
@teej_dv
@teej_dv 3 жыл бұрын
Happy to do so :) more coming soon!
@ianliu88
@ianliu88 2 жыл бұрын
Why did you say Tab key is wrong? Could you expand more on the subject?
@LaBatata101
@LaBatata101 3 жыл бұрын
How do I get transparency in the completion menu?
@teej_dv
@teej_dv 3 жыл бұрын
:help pumblend Or it may be a setting for nvim-cmp if that's what you're talking about.
@dani98000
@dani98000 3 жыл бұрын
What keyboard are you using?
@teej_dv
@teej_dv 3 жыл бұрын
I've got a dactyl!
@whereistejas
@whereistejas 3 жыл бұрын
Hi TJ, great video. I'm using nvim-cmp as well and it is great. I use it for Rust. I wonder if there is a way for us to order the code completion suggestions, for example, I want to see variable names before I see method names?
@teej_dv
@teej_dv 3 жыл бұрын
Yeah! You could create a new thing for comparators. See a plugin like this: github.com/lukas-reineke/cmp-under-comparator to show you how you could do that.
@anoname10
@anoname10 3 жыл бұрын
Pls could you point me where should I look to get similar status line with \-master\- and etc for neovim? Cool vid btw
@teej_dv
@teej_dv 3 жыл бұрын
I use expressline, but I think there are a lot of new lua statuslines that are easier to use. I think just google "github neovim lua statusline" and pick one that looks good and has stars. I don't have a lot of great opinions on the matter.
@matthiasqueitsch3720
@matthiasqueitsch3720 3 жыл бұрын
Hey, great work. I tried to replicate you gh_issues lua file. Unfortunately, I get an error "attempt to index field 'json' (a nil value)" in the "pcall(vim.json.decode..."-line. gh returns the json normaly. Any ideas?
@teej_dv
@teej_dv 3 жыл бұрын
Ah, that requires a newer version of Neovim. I think you can replicate with vim.fn.json_decode instead. And then you may need to schedule the callback (on_exit = vim.schedule_wrap(function() ... end) etc.
@matthiasqueitsch3720
@matthiasqueitsch3720 3 жыл бұрын
@@teej_dv Thanks, yeah I figured out the first part (0.6.x-dev...) will work, but then other stuff gets broken. If I use my own Json decoder it says something like "cant vim echo in callback". I will try the on_exit method. EDIT: Awesome - it works. Thanks again!
@adityakurdunkar6655
@adityakurdunkar6655 3 жыл бұрын
keep up such good content
TakeTuesday E02: Comment.nvim
16:25
TJ DeVries
Рет қаралды 28 М.
TakeTuesday E03: Introduction to LuaSnip
22:52
TJ DeVries
Рет қаралды 55 М.
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
ССЫЛКА НА ИГРУ В КОММЕНТАХ #shorts
0:36
Паша Осадчий
Рет қаралды 8 МЛН
I Rewrote My Entire Neovim Config...
11:09
TJ DeVries
Рет қаралды 52 М.
Wrapping your favorite CLI in neovim
26:15
senkwich
Рет қаралды 10 М.
The Lua Snips Saga is Finally Complete! - Take Tuesday
18:59
TJ DeVries
Рет қаралды 18 М.
I tried Neovim Distributions so you don't have to
9:12
typecraft
Рет қаралды 191 М.
Treesitter Basics and Installation
13:50
TJ DeVries
Рет қаралды 25 М.
Automatically Execute *Anything* in Nvim
11:03
TJ DeVries
Рет қаралды 77 М.
simple neovim debugging setup (in 10 minutes)
9:36
TJ DeVries
Рет қаралды 63 М.
Neovim Lazy Lua IDE - my simple but powerful setup for 2024
29:13
Where Lua Is Actually Used
9:25
Tortellini Soup
Рет қаралды 25 М.
Developing a Neovim Docker Plugin from Scratch
23:16
Developer Voices
Рет қаралды 17 М.
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН