Тёмный

TakeTuesday E01: nvim-cmp 

TJ DeVries
Подписаться 77 тыс.
Просмотров 63 тыс.
50% 1

In our first episode of #TakeTuesday, we explore the wonderful completion plugin "nvim-cmp". You'll learn how to configure, customize and even create your own sources for nvim-cmp.
CORRECTION:
Sorry, I set that cmp.setup.buffer ADDs to global setup, but it actually OVERRIDEs global setup. See github.com/hrs... . Can be see at 12:30
Some important links:
Nvim-cmp: github.com/hrs...
My Dotfiles: github.com/tjd...
My nvim-cmp setup: github.com/tjd...
Github issues source: github.com/tjd...
Related plugins
github.com/ms-...
github.com/neo...

Опубликовано:

 

15 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 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!
@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
@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!
@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 :)
@devonduty
@devonduty 3 года назад
Hey TJ, thanks for this great video, I really like the format! Best regards, David
@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)
@tamatotodile
@tamatotodile 5 месяцев назад
2 years later, this video still helping lost souls like me. Thanks teej :D
@teej_dv
@teej_dv 5 месяцев назад
haha that's awesome!
@EuphoricRaccoon
@EuphoricRaccoon 2 года назад
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 2 года назад
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!
@maniac5411
@maniac5411 11 месяцев назад
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.
@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!
@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.
@imaksimus
@imaksimus Год назад
Decided to watch this spontaneously. Just as good as the first time. Really miss TakeTuesday.
@SaMusz73
@SaMusz73 11 месяцев назад
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
@WiseGuyFTW
@WiseGuyFTW 2 года назад
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!
@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 2 года назад
Wow! That's very kind of you! So glad you enjoyed it!
@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! :)
@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!)
@Amapramaadhy
@Amapramaadhy 3 года назад
Seriously face melting stuff. Really enjoyed the format. Chock full of actionable items. Thanks TJ.
@teej_dv
@teej_dv 2 года назад
Awesome! :) I will try to keep to that standard!
@pigozs
@pigozs Год назад
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.
@Dieterbe
@Dieterbe 2 года назад
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 2 года назад
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!
@stev0rev0
@stev0rev0 2 года назад
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.
@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!
@ryanseipp6944
@ryanseipp6944 2 года назад
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 2 года назад
It's automatic now! Just get on a newer release and they get loaded.
@n0kodoko143
@n0kodoko143 2 года назад
: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.
@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
@gavinvales8928
@gavinvales8928 2 года назад
you nvim guys are absolute magicians
@teej_dv
@teej_dv 2 года назад
haha thanks!
@seanbanko1442
@seanbanko1442 2 года назад
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 2 года назад
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 :)
@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"
@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.
@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!
@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!
@JeremyBaumont
@JeremyBaumont 2 года назад
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 2 года назад
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!
@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
@lucastperez
@lucastperez 2 года назад
The GH Issues thing was very impressive! Really nice video :D
@teej_dv
@teej_dv 2 года назад
Excellent!
@FaintArt
@FaintArt 7 месяцев назад
Hey teej, Can you show you'd configure github copilot with this too?? Also you are really doing a great job! keep it up!!
@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!
@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 2 года назад
After "accept"ing the solution (which is for me), I can move with which is my luasnip "jump-to-next" key.
@andresgutgon
@andresgutgon 2 года назад
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 2 года назад
That's a good idea, I'll do it sometime :)
@nraw_
@nraw_ Год назад
@@teej_dv Are we there yet? I'd also be interested :)
@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!
@ak2f
@ak2f 3 года назад
Thank you, really helpful video. Next maybe nvim-dap, how to setup etc.?
@teej_dv
@teej_dv 2 года назад
It's on the list!
@nodidog
@nodidog 2 года назад
Thanks for your uploads TJ, they're really helpful!
@teej_dv
@teej_dv 2 года назад
Excellent! So happy to hear that!
@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 🙂
@jotarokujo6099
@jotarokujo6099 3 года назад
Nice explanation. Thank you!
@dimitardimitrov3421
@dimitardimitrov3421 2 года назад
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
@dimitardimitrov3421
@dimitardimitrov3421 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!
@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.
@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
@adityasinha3669
@adityasinha3669 2 года назад
Amazing format buddy ✌🏽
@teej_dv
@teej_dv 2 года назад
Thanks :) I am enjoying it!
@gersongallo6892
@gersongallo6892 3 года назад
I love this format, keep them coming
@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
@cafce2567
@cafce2567 2 года назад
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.
@Oswee
@Oswee 2 года назад
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!
@lucastperez
@lucastperez 2 года назад
Fu***ng hell that Subscribe Button jump scare at 4:53 almost killed me. I was kinda sleepy in front of the pc 😅
@ChillinAtDaClub
@ChillinAtDaClub 3 года назад
Really enjoyed this and look forward to more plugin walkthroughs
@starggoo
@starggoo 3 года назад
This is great. Made some changes to my setup based on the vid. Looking forward to more.
@jjzunino
@jjzunino 2 года назад
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 2 года назад
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.
@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.
@saikoushikmacha7379
@saikoushikmacha7379 3 года назад
great video waiting for the LuaSnip
@teej_dv
@teej_dv 3 года назад
Hopefully in the next few weeks :)
@tyrox9
@tyrox9 2 года назад
Really good video thanks!
@RoryIsNotACabbage
@RoryIsNotACabbage 3 года назад
This was really well explained TJ, thanks
@kyp0717
@kyp0717 2 года назад
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 2 года назад
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 :)
@windsweptflutters
@windsweptflutters 2 года назад
Thank you so much for this video!
@teej_dv
@teej_dv 2 года назад
So glad you liked it!
@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
@GaetanLepage
@GaetanLepage 2 года назад
Thank you TJ for sharing this great content !
@teej_dv
@teej_dv 2 года назад
My pleasure!
@PaulJacobson
@PaulJacobson 2 года назад
Thanks for this video. I found this helpful.
@cristianinujazznight3044
@cristianinujazznight3044 2 года назад
Hi, is there a way to call cmp.complete while typing? Just to have the same effect from coc.nvim
@windowsrefund
@windowsrefund 2 года назад
Hello. I find myself quite interested in your anti-Tab POV but you never really showcased your actual work flow. I suppose that does make sense given the scope of this broadcast. That said, can I see your actual autocomplete workflow actually put to use anywhere? I'm really interested in how you quickly and effectively autocomplete and move throughout snippets, etc without Tab. Thanks in advance and all the best.
@ciacconas4903
@ciacconas4903 2 года назад
More Take Tuesday episodes pls!!
@teej_dv
@teej_dv 2 года назад
Part 1 of LuaSnip will hopefully be done soon :)
@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.
@dontwanttousemyrealnametol6765
@dontwanttousemyrealnametol6765 3 года назад
How would you do something similar to "g:mucomplete#can_complete" (lifepillar/vim-mucomplete) with nvim-cmp?
@teej_dv
@teej_dv 2 года назад
Hmmm, I'm not familiar with this. I don't know of good analogues. Sorry!
@avimehenwal
@avimehenwal 2 года назад
amazing video, very useful content
@teej_dv
@teej_dv 2 года назад
Thanks :)
@muhammadraza7231
@muhammadraza7231 Год назад
I am finding very difficult to add jump to next or previous placeholder. Help me Brother
@wormholecowboy
@wormholecowboy Год назад
Hey TJ, how can you get cmp to work with npm libraries?
@majestic2814
@majestic2814 2 года назад
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 2 года назад
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)
@qwertyasdf7615
@qwertyasdf7615 3 года назад
Ooo yeahhh!! Nvim dap!
@mikloscsepella2743
@mikloscsepella2743 2 года назад
great content. keep 'em coming plz! would love one about LuaSnip. thank you
@teej_dv
@teej_dv 2 года назад
I have a video almost done for comment.nvim and then the next videos will be about LuaSnip!
@mikloscsepella2743
@mikloscsepella2743 2 года назад
@@teej_dv thats exciting ty!
@hectorclara8894
@hectorclara8894 3 года назад
My dude, excellent video. I see you use your custom plugin to modify the window colors, how do that I that vanilla wise without your plugin? Things like "Method, "Class", etc.. has this ugly highlighting and I have no idea where its coming from.
@teej_dv
@teej_dv 2 года назад
you can just use the basic ":highlight HighlightGroupName guifg=red guibg=blue" or whatever you want to do for those.
@hectorclara8894
@hectorclara8894 2 года назад
@@teej_dv Thanks so much for this! turns out the nvim theme was a bit jacked up
@anoname10
@anoname10 2 года назад
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 2 года назад
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.
@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 :)
@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.
@davidsicilia5316
@davidsicilia5316 2 года назад
Thanks for making these videos
@teej_dv
@teej_dv 2 года назад
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?
@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.
@ayoubelmhamdi7920
@ayoubelmhamdi7920 3 года назад
you are a great teacher،
@_vikramhegde_
@_vikramhegde_ 3 года назад
Looking forward to more of these 🙌
@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!
@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!!!!!
@kevinlee6416
@kevinlee6416 3 года назад
Great work👍👍, very helpful thanks
@jmann277
@jmann277 3 года назад
Fantastic content! Greatly appreciated.
@lpanebr
@lpanebr 2 года назад
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 2 года назад
I think someone actually did that already on github! I It's like cmp-git or something like that.
@lpanebr
@lpanebr 2 года назад
@@teej_dv thanks!!!
@hellmag123
@hellmag123 Год назад
very useful! Thank you
@rblab5
@rblab5 3 года назад
Thank you TJ... great content!
@thiagolopes4978
@thiagolopes4978 3 года назад
Can we embed AI to process our voices, and speak with the computer through Neovim, like Iron Man, or it's only about Spider Man things?
@teej_dv
@teej_dv 3 года назад
If I find a plugin that can do that, I will make a video :)
@adityashourya3446
@adityashourya3446 3 года назад
Ok. This series is cool.
@mancesnowdon1757
@mancesnowdon1757 2 года назад
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 2 года назад
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 2 года назад
@@teej_dv Huge thanks !
@tobias-edwards
@tobias-edwards 2 года назад
Thanks for the video, I'll probs stick with coc for now because it's super easy to setup (imo)
@teej_dv
@teej_dv 2 года назад
Cool, use what works for you!
@tobias-edwards
@tobias-edwards 2 года назад
@@teej_dv 4 months later and I've rewrote my entire config in Lua and am using nvim-cmp! At times I did think about switching back to CoC but managed to get it all working with builtin LSP after a full week of debugging hallelujah
Далее
TakeTuesday E02: Comment.nvim
16:25
Просмотров 27 тыс.
Automatically Execute *Anything* in Nvim
11:03
Просмотров 73 тыс.
Outsmarted 😂
00:20
Просмотров 3,2 млн
САМАЯ ТУПАЯ СМЕРТЬ / ЧЕРНЕЦ
1:04:43
I Rewrote My Entire Neovim Config...
11:09
Просмотров 46 тыс.
Integrated Test Results in Neovim
14:50
Просмотров 35 тыс.
Magically format embedded languages in Neovim
17:01
Просмотров 45 тыс.
Learn By Building: Language Server Protocol
1:59:54
Просмотров 77 тыс.
TakeTuesday E03: Introduction to LuaSnip
22:52
Просмотров 52 тыс.
Vim Dadbod - My Favorite SQL Plugin
6:01
Просмотров 35 тыс.
LSP Explained (in 5 Minutes)
5:06
Просмотров 59 тыс.
Neovim - Telescope: a highly extendable fuzzy finder
13:57
Outsmarted 😂
00:20
Просмотров 3,2 млн