2:12 VERY IMPORTANT: Add blink.cmp as a dependency 'cause it can happen that it hasn't been loaded else. (TJ did it, but didn't mention it)
@youngreda4410Ай бұрын
custom snippets next would be cool love the series!
@ricardorienАй бұрын
YEEEEEEAH
@dadinhoschannel4003Ай бұрын
YEEEEAH
@teej_dvАй бұрын
ok ok i cover custom snippets at some point in the series haha
@dennistanui708527 күн бұрын
@@teej_dvdon't forget to cover virtual text and multiple completion sources please 🙏
@paulthexton7483Ай бұрын
I've been quite happy with nvim-cmp so far, but this looks excellent, I especially like the signature help sticking around while you're still filling out parameters! Looks like I'm tweaking my nvim config this evening!
@PasterNoster94Ай бұрын
This
@yukio9400Ай бұрын
yeah i didn't think i would need it but ... yeah seems like its a bit better than nvim-cmp
@teej_dvАй бұрын
ya, i'm going to try it out for a month or so and then do a proper longer video for it I think
@felipetrostАй бұрын
Even though I've been using nvim for a while now, and I have gone through configuring most of the things you talk about myself, this series is super fun, and I'm learning stuff I didn't know. props for the idea and the execution
@teej_dvАй бұрын
thanks :) trying to make it both fun and informative, so glad you feel that way!
@IndiMentalsАй бұрын
Thanks!
@teej_dvАй бұрын
Whoa!! Thanks!!
@DjzaamirАй бұрын
I think with every passing day TJ and prime are getting me one step closer to being a full time neovim user.
@teej_dvАй бұрын
ONE OF US! ONE OF US! ONE OF US!
@Shafti-Code7 күн бұрын
its day 3 of configuring nvim by myself by modifing primes"0 to lsp" video, mr tj this shit so fire please continue this series ive never seen someone get to the point while also sharing necessary knowledge and educating people on the topic of vim, thank you very much
@friendliness1337Ай бұрын
The other day I said "I'll need to look into blink soon", started looking into it today and then this video goes live 😂 Thanks again my man!😊
@teej_dvАй бұрын
haha np, i'll do a bigger one after i try the plugin for awhile
@nemethdaАй бұрын
"if you want you can do these other ones, but you're wrong.. that's okay" 🤣 but WOW the signature help is a game changer thanks so much Teej, I love this series!!
@teej_dvАй бұрын
just tryin to have a little fun and make some laughs in the vids ;)
@nemethdaАй бұрын
@@teej_dv Teej, I started to configure this but should I treat blink.cmp as drop-in replacement of nvim-cmp?
@mohansellaАй бұрын
Really helpful. I use nvim-cmp so far but its configuration was the hardest that i experienced in nvim plugins :(
@FilipeAguiarCarvalhoАй бұрын
I know, right? I had it working for everything except vue files. It was broken for days until i got the time to fix it. I'll try blink to see if it's worth.
@teej_dvАй бұрын
ya, i love nvim-cmp but I m going to give blink a try for a month or two and then give my thoughts
@ForeverZer0Ай бұрын
I recently made the switch to blink, and would definitely recommend checking it out if you are using nvim-cmp. I am typically guilty of of just sticking with what I already know, but spent some recently trying out some popular alternatives to plugins I use, and ended up making some major changes from plugins I never imagined I could do without, blink being on new additions. Not to steal any thunder from TJ, but I even replaced Telescope with fzf-lua, which totally surprised me, as Telescope has been on of those plugins I pretty much can't live without, it is quintessential to the neovim experience. They are functionally very similar to each other, but fzf-lua has a few extra bells-and-whistles, and feels more responsive.
@Kaikaci07Ай бұрын
I switched to blink two days ago and it's wonderful
@whenrow3630Ай бұрын
I love how Teej is doing the videos faster than the previous one. I'm very hyped to be on 25th :D
@teej_dvАй бұрын
haha i'll try to keep up the fun!
@davidnaneishviliАй бұрын
Thanks! And great sweater by the way!
@priyanshukatuwalАй бұрын
This series would've helped me so much an year ago
@teej_dvАй бұрын
haha sorry, i didn't invent time travel but i can at least make nvim videos LOL
@priyanshukatuwalАй бұрын
@@teej_dv Hehe no biggies, I still keep learning something new from this series!
@Kane0123Ай бұрын
Let's get right to it - love that
@teej_dvАй бұрын
that's what i try to do in all the vids (except if i have a good idea for a meme haha)
@majam1nАй бұрын
What is this sorcery. Teej on fire 🔥
@teej_dvАй бұрын
thank you thank you :)
@Peter-UK-nl6cvАй бұрын
mind blown
@stefan_luptakАй бұрын
Is there a typo in capabilites vs. capabilities at 1:57?
@avi7278Ай бұрын
The 12 days of teej
@Junior.NascimentoАй бұрын
this is fire
@teej_dvАй бұрын
thanks!!
@CNich90Ай бұрын
Thank God I started my neovim journey after blink.cmp was already a thing. I bypassed all the pain people talk about when configuring nvim-cmp.
@teej_dvАй бұрын
i think nvim-cmp is not too bad, but it does take a little more reading haha
@not_everАй бұрын
I don't remember nvim-cmp being particularly bad to setup. People who struggle will always be louder than people who just set something up and get on with their day.
@rexsybimatrimawahyu3292Ай бұрын
Ceo of neovim....
@programmer1356Ай бұрын
you too eh? [heheheh I see a horse with laser eyes]
@user-sq1oi9qp8wАй бұрын
he is one of core maintainer of neovim after all
@teej_dvАй бұрын
haha thanks
@miyalysАй бұрын
Don't know if this is a good suggestion for a topic, or really possible, but I'm quite curious about suggestions on what doesn't need to go in the config or ways to clean it up. Fx. things that used to be relevant to use plugins for, but which is now handled natively by neovim in a better way. Fx. it seems I don't really need vim-highlightedyank anymore as Neovim can handle this natively just by setting an option.
@eflinjhАй бұрын
How did this work with "capabilites" as the property name on the table instead of "capablities"... did it fuzzy find the right config option too? for reference timestamp- 2:14 line 12
@ArisTheInquringАй бұрын
You know i had seen this the other day when browsing the cmp docs is it better ? The way it was referenced made it sound like a much better completion engine
@teej_dvАй бұрын
I'm going to try it out for a month and give my thoughts as a comparison
@toltariusАй бұрын
Hey TJ, I love this a lot! And thank you for the tutorials. I just moved my nvim config today from packer to lazy because of your videos and its been amazing. Though, I am unsure why or how the icons on the left of the cmp menu are not showing for me like you did at 2:33 in the video. They show as a ? mark icon for me. Can you point me in the right direction to fixing this? If not I will just try to google it as best I can until I give up.
@teej_dvАй бұрын
hmmm, all the configuration i have for completion is in this video haha
@toltariusАй бұрын
@@teej_dv No worries! It works as expected its just the icons do not show like for the symbols. I am running windows terminal however so it could have to do something with that. Off to googling I go!
@n.fejzicАй бұрын
@@toltarius Can it be that you miss a nerd font?
@not_everАй бұрын
@@toltarius You are either missing nerd fonts or you have a really out of date version of nerd fonts
@toltariusАй бұрын
Yep it was a nerd font in a old version. Thanks guys.
@disturb1613 күн бұрын
So much simpler to add snippets now
@Teslacoil33Ай бұрын
I know I'm "wrong", but trying to use CTRL Y whilst using CRTL N, CTRL P to cycle between autocomplete options is just awkward on my fingers. I think it's the transition of my right index finger from the "N" key to the "Y" key which feels like such a huge jump. Most of the time I'll be cycling forward through these options with CTRL N and then it's trivial for my right pinky to just give that Enter key a quick little tap. Maybe it's just the years of muscle memory. Maybe one day I'll transition, but it is not this day!
@FrankJonenАй бұрын
What would you recommend for writers in terms of getting definitions to show up like these autocompletes? Like you type “Westeros” and get a list of all places within it along with a one liner description.
@tomaszgalkowski8701Ай бұрын
You'd need a custom LSP.
@teej_dvАй бұрын
ya custom LSP or a custom auto completion source. either would work probably
@sayanta01Ай бұрын
can you make a video on: A new way to setup LSPs has been merged
@teej_dvАй бұрын
ya, but it needs a little time to cook first, i don't want to make the video and have it get out of date. it's still nightly only and very recent
@sayanta01Ай бұрын
@@teej_dv ohk, btw thanks for this series
@Greenbay-bn3ykКүн бұрын
Hey bro, I installed this exactly as you did but my completion suggestions and signature help are not as rich as yours. How do I fine tune my lspconfig?
@overthinker8532Ай бұрын
Thanks for this info (I dont even use neovim)
@teej_dvАй бұрын
hahaha well thanks for the comment anyway!
@JoeBrigAIАй бұрын
To get to this point, we need: neovim < obviously lazy < package manager nvim-treesitter < configures builtin treesitter LSP's installed < external processes to neovim nvim-lspconfig < configures builtin LSP features blink.cmp < alternative to builtin omni completion ?
@IainSimmonsАй бұрын
This video is part of TJ's Advent of Neovim series, if you go back and watch the previous videos in the series, he covers all of those things 🙂
@teej_dvАй бұрын
yup! basically every line of config is covered in the advent of nvim series
@n.a.s1096Ай бұрын
Can you show how to use the built-in completion.
@teej_dvАй бұрын
i mentioned it in a previous video, and to read ins-completion. i don't think i'll make a whole video about it. tho
@blyedevАй бұрын
This is great, is there any way to use it with the lspkind menu feature? You made a video a while back that set up lspkind to show where each completion item comes from, the function highlight is cool enough to switch over but the source label is very important to me
@teej_dvАй бұрын
i'm not sure - i would check their readme and see. maybe i will come back with some advanced config for the plugin or a review of it after a month or something.
@blyedevАй бұрын
@teej_dv i did some digging since the comment and they do support it! Without an additional plugin even, they have that as built in functionality!
@EliasHansenu7fАй бұрын
I installed nvim via kickstart and added som custom plugins. But when I tried to disable nvim-cmp to try this plugin Ive got a lot of errors. I don't know why yet, but it may be a good idea to untangle the awesome kickstart project
@kpr3729Ай бұрын
Hope you can implement this on the kickstart-nvim repo soon
@teej_dvАй бұрын
ya, i'm going to give blink a try for awhile, but if I like it a lot then I may update kickstart nvim to use it as well
@kpr3729Ай бұрын
@@teej_dv Thank you Tj! I've spent the whole night yesterday trying to refactor my kickstart, although it worked for go projects using mason +lspconfig, it couldnt say the same with JS (using eslint, tsserver). I just reverted it back to the base lsp conf from kickstart :P
@samirhembrom25599 күн бұрын
the brackets for functions are automatically created how do i stop that behavior?
@risunapple10523 күн бұрын
it shows completions after installing and setting it up but not from the lsp they just seem to be mainly or only from keywords on the same buffer?
@leonardodavinci2856Ай бұрын
so is this complementary to nvim cmp or seperate project because i wanted to see the path of the import variable and i was able to do it in nvim cmp but in blink ill need to read more about how to do that. Also i have been tring disabling the auto suggestions while writing code and it really makes you remember the names of the commands which you will forget when using autocompelete. Also removed around 10-15 plugins from the neovim for the minimalistic. Creating my own remaps for the snippets.
@GuyKroizmanАй бұрын
I just installed lazyvim and I got auto complete out of the box. Where is coming from then? What should i disable before doing these changes? Please😊
@raphaeloliveira01Ай бұрын
LazyVim already uses blink.cmp by default.
@Aoi-uv8eeАй бұрын
Dear SanteeJ, This year for Christmas I want to debug dotnet projects in neovim.
@thegreasetray7676Ай бұрын
I added this to the kickstart config but when I type vim.api.bsl and accept the nvim_buf_set_lines selection it goes to select mode with brackets and params instead of just compeleting the method. How do I change this behaviour to match yours?
@thegreasetray7676Ай бұрын
Ok, it was cuz of the code snippet lmao Realized it's a pretty neat feature after digging more into it.
@sergioteixeira3313Ай бұрын
cant get buffer words working with blink though
@metin4ytАй бұрын
Hey! Is there any way to activate plugins by file type? I work on many technologies and I would like stuff to only load if there is a reason for it
@nazarzibilyuk151116 күн бұрын
Does anybody knows why signature might not work?
@darkchoclateАй бұрын
I'm confused, how it's easier than cmp? You setup, you pass capabilities to lsp. that's it.
@teej_dvАй бұрын
i like the presets, so that you have a bit less to do in terms of keymaps (and less setup for the sources from what i've seen)
@halamadrid5238Ай бұрын
Swapped to blink last week and ITS SO FAST
@MonospaceMentorАй бұрын
Blink and you'll miss it!
@teej_dvАй бұрын
ya, it does seem VERY snappy
@idk-nvАй бұрын
Nice vido, How to config source priority?
@teej_dvАй бұрын
it's in the order of the sources in the list of config options
@Ask-786Ай бұрын
Wanna give a try. Is it capable of showing the doc while scrolling through completions even before we actually select it huh?
@teej_dvАй бұрын
I'm not sure - i have to explore the plugin a bit more
@gungun974Ай бұрын
Look cool. I will try it right now since I think nvim-cmp SUCK (or at least I got my neovim going very very slow after opening too many buffers)
@patricorgiАй бұрын
basedpyright lsp does not offer such signature help, or is it because I didn't configure it properly?
@teej_dvАй бұрын
it may be that the LSP does not support it, I'm not sure - sorry :/
@keteremillparioАй бұрын
how do you manage to combine copilot and autosuggestions? I'm struggling a bit lately (I just installed copilot to see how it works but it's conflicting with autosuggestions, specially the keybindings)
@mba849Ай бұрын
How do you show these keystrokes at the bottom of the vid?
@yamiteru4376Ай бұрын
How does it compare to coq though?
@VTEKDKАй бұрын
Why is C-y a godt keybind?
@JoeBrigAIАй бұрын
anyone have an example of a config with blink and mason
@usernr546Ай бұрын
I also use blink.cmp, but encountered some weird behaviors. When I write the same vim.api.nvim_buf_set_lines( I get the same hover window as you get. But every time I type "0" for example it closes the hover and opens it up again when I type the ",". I do not get why and it looks much smoother on your video then for me. It is kinda distracting. Does someone maybe know why? EDIT: If anyone ever stumbles over this: Noice also provided a signature which collided with the one from blink. See comment below
@teej_dvАй бұрын
hmm, maybe old nvim version? that's my only guess offhand. Otherwise i'd check the issue tracker
@usernr546Ай бұрын
@@teej_dv Thanks for your answer :) I just digged a bit into it and found out that it was actually "folkge/noice.nvim" was also providing signatures to me that had this behavior. Disabling it in noice and enabling signature in blink solved the issue and now works like a charm! Thanks for your videos you are the GOAT!
@cz7259Ай бұрын
It’s very sad to switch to blink and just realize how slow the LSP server is. No blink can save that. But hey at least it’s fast when I am in lua files.
@teej_dvАй бұрын
haha yes, some lsps could definitely go faster
@iukys3889Ай бұрын
Is that it ??
@teej_dvАй бұрын
that's it................
@karamanlievАй бұрын
I cant make cmdline completion work with blink for some reason.
@teej_dvАй бұрын
hmm, i haven't tried it out myself yet - i like the default completion stuff usually
@karamanlievАй бұрын
@@teej_dv The default one doesn't suggest words from the buffer with "/" and "?", I think. But they have this in their default config: cmdline = function() local type = vim.fn.getcmdtype() -- Search forward and backward if type == '/' or type == '?' then return { 'buffer' } end -- Commands if type == ':' then return { 'cmdline' } end return {} end,
@justincmendesАй бұрын
D: y r u yelling at me
@LorenzoBettiniАй бұрын
For sure I'm missing something, but I followed along and I keep getting this error: Error executing vim.schedule lua callback: ...hare/neovim-advent/lazy/blink.cmp/lua/blink/cmp/init.lua:21: Error while downloading blink.cmp pre-built binary: Can't download from gi thub due to not being on a git tag and no fuzzy.prebuilt_binaries.force_version set, but found no built version of the library. Either run `cargo build --release` via your package m anager, switch to a git tag, or set `fuzzy.prebuilt_binaries.force_version` in config. See the README for more info. stack traceback: [C]: in function 'error' ...hare/neovim-advent/lazy/blink.cmp/lua/blink/cmp/init.lua:21: in function '' vim/_editor.lua: in function
@LorenzoBettiniАй бұрын
OK, found the problem: I hadn't noticed that from the README file he jumped to a release tag, and so the version = 'v.0*'; I had started with '*' and the prebuilt binary couldn't be downloaded. I had to do ":Lazy", update and sync. Very very confusing!
@colydeaneАй бұрын
@@LorenzoBettini Thank you this fixed my problem too.
@eduardofernandez2697Ай бұрын
is he roasting prime?🤔
@kostadinterziev1453Ай бұрын
How does ur theme have that texture on it? Kinda feels like paper is it a plugin or terminal specific?
@teej_dvАй бұрын
hahaha it's actually just some weird youtube encoding issue!
@kostadinterziev1453Ай бұрын
@@teej_dv damn, someone should make that a theme, i love the retro feel of it
@hugosales8102Ай бұрын
C-n and C-p, common emacs w :v
@teej_dvАй бұрын
haha i think c-n, c-p have been in vim for a long time (idk who had it first)
@hugosales8102Ай бұрын
I only tried vim very briefly (before emacs, actually), so I wouldn't know, but in emacs those are the main navigation keys, comparable to hjkl. I will grant that it's a bit weird that it's C-b for back, C-f for foward and C-n for next and C-p for previous, di they're spread out, but it's not such a big deal. It's awesome that they're everywhere, like in bash or anything using readline. I'm sure vim is great, but I couldn't get used to the modal stuff
@terxxxzАй бұрын
Is it JetBrainsMono?
@gerydony6531Ай бұрын
looks like Berkeley Mono (paid font)
@terxxxzАй бұрын
@@gerydony6531 ty
@teej_dvАй бұрын
ya, berkeley mono - jetbrains mono is great though
@asg8813Ай бұрын
Is this better than nvim-cmp? How?
@AhmadMughal1Ай бұрын
much much faster and fuzzy finding as well
@런지부Ай бұрын
The repo says it's still beta , is it unstable? I should try it though
@AhmadMughal1Ай бұрын
@@런지부 So far i had 2 issues which were resolved the next day i woke up. If you don't use a lot of external cmp sources it should be very easy to replace and it offers most common native sources by default so do check that list. After those 2 issues I've had no problems since.
@SR-ti6jjАй бұрын
Hmm, so that's it?
@teej_dvАй бұрын
haha that's it!
@sairaj5660Ай бұрын
benchod, this is way too easy to use as compared to nvim-cmp
@br4vetrave1erАй бұрын
lets type something! types kkk... me af 🗿
@teej_dvАй бұрын
hahahaha
@alexferreira1534Ай бұрын
first!
@teej_dvАй бұрын
first reply
@mogambroАй бұрын
Ctrl-N and P are so wrong. Should be Ctrl-K and Ctrl-J instead
@willernstАй бұрын
C-n and C-p are nice patterns to establish because they're ubiquitous, though.
@teej_dvАй бұрын
:help ins-completion :)
@nasso_Ай бұрын
i really need a way to preview the auto-import in my completion menu because sometimes there are 8467376949465 different types with the same name and i have to guess which one is the one im looking for... can this do that?
@henryallenlaudemilk5161Ай бұрын
Anyone use mini-completion? Why blink.nvim over mini-completion?
@teej_dvАй бұрын
all the mini plugins are great, hard to go wrong with them
@Ghostbutfromdestiny2Ай бұрын
2 time but still curious, who no startup? (like alpha.nvim)
@teej_dvАй бұрын
why startup? for me it doesn't give me any useful info haha
@Ghostbutfromdestiny2Ай бұрын
@@teej_dv Thats fair, i use one because i normally need the most recently used files (i meant why in the original comment). Thanks for reply tho