The easiest neovim autocompletion setup?

  Рет қаралды 10,821

TJ DeVries

TJ DeVries

Күн бұрын

Пікірлер: 134
@pi_ist_toll
@pi_ist_toll 21 сағат бұрын
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
@youngreda4410 23 сағат бұрын
custom snippets next would be cool love the series!
@ricardorien
@ricardorien 19 сағат бұрын
YEEEEEEAH
@dadinhoschannel4003
@dadinhoschannel4003 19 сағат бұрын
YEEEEAH
@teej_dv
@teej_dv 11 сағат бұрын
ok ok i cover custom snippets at some point in the series haha
@Djzaamir
@Djzaamir 7 сағат бұрын
I think with every passing day TJ and prime are getting me one step closer to being a full time neovim user.
@teej_dv
@teej_dv 4 сағат бұрын
ONE OF US! ONE OF US! ONE OF US!
@paulthexton7483
@paulthexton7483 21 сағат бұрын
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
@PasterNoster94 16 сағат бұрын
This
@yukio9400
@yukio9400 14 сағат бұрын
yeah i didn't think i would need it but ... yeah seems like its a bit better than nvim-cmp
@teej_dv
@teej_dv 11 сағат бұрын
ya, i'm going to try it out for a month or so and then do a proper longer video for it I think
@IndiMentals
@IndiMentals 21 сағат бұрын
Thanks!
@teej_dv
@teej_dv 20 сағат бұрын
Whoa!! Thanks!!
@felipetrost
@felipetrost 21 сағат бұрын
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
@teej_dv 11 сағат бұрын
thanks :) trying to make it both fun and informative, so glad you feel that way!
@mohansella
@mohansella 23 сағат бұрын
Really helpful. I use nvim-cmp so far but its configuration was the hardest that i experienced in nvim plugins :(
@FilipeAguiarCarvalho
@FilipeAguiarCarvalho 20 сағат бұрын
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
@teej_dv 11 сағат бұрын
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
@ForeverZer0 8 сағат бұрын
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.
@davidnaneishvili
@davidnaneishvili 2 сағат бұрын
Thanks! And great sweater by the way!
@friendliness1337
@friendliness1337 23 сағат бұрын
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
@teej_dv 11 сағат бұрын
haha np, i'll do a bigger one after i try the plugin for awhile
@Kaikaci07
@Kaikaci07 8 сағат бұрын
I switched to blink two days ago and it's wonderful
@whenrow3630
@whenrow3630 17 сағат бұрын
I love how Teej is doing the videos faster than the previous one. I'm very hyped to be on 25th :D
@teej_dv
@teej_dv 11 сағат бұрын
haha i'll try to keep up the fun!
@nemethda
@nemethda 16 сағат бұрын
"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
@teej_dv 11 сағат бұрын
just tryin to have a little fun and make some laughs in the vids ;)
@priyanshukatuwal
@priyanshukatuwal 22 сағат бұрын
This series would've helped me so much an year ago
@teej_dv
@teej_dv 11 сағат бұрын
haha sorry, i didn't invent time travel but i can at least make nvim videos LOL
@priyanshukatuwal
@priyanshukatuwal 20 минут бұрын
@@teej_dv Hehe no biggies, I still keep learning something new from this series!
@CNich90
@CNich90 17 сағат бұрын
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
@teej_dv 11 сағат бұрын
i think nvim-cmp is not too bad, but it does take a little more reading haha
@majam1n
@majam1n 20 сағат бұрын
What is this sorcery. Teej on fire 🔥
@teej_dv
@teej_dv 11 сағат бұрын
thank you thank you :)
@Kane0123
@Kane0123 22 сағат бұрын
Let's get right to it - love that
@teej_dv
@teej_dv 11 сағат бұрын
that's what i try to do in all the vids (except if i have a good idea for a meme haha)
@avi7278
@avi7278 Сағат бұрын
The 12 days of teej
@stefan_luptak
@stefan_luptak 2 сағат бұрын
Is there a typo in capabilites vs. capabilities at 1:57?
@eflinjh
@eflinjh 10 сағат бұрын
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
@toltarius
@toltarius 11 сағат бұрын
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
@teej_dv 10 сағат бұрын
hmmm, all the configuration i have for completion is in this video haha
@toltarius
@toltarius 10 сағат бұрын
@@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
@n.fejzic 8 минут бұрын
@@toltarius Can it be that you miss a nerd font?
@rexsybimatrimawahyu3292
@rexsybimatrimawahyu3292 23 сағат бұрын
Ceo of neovim....
@programmer1356
@programmer1356 22 сағат бұрын
you too eh? [heheheh I see a horse with laser eyes]
@user-sq1oi9qp8w
@user-sq1oi9qp8w 22 сағат бұрын
he is one of core maintainer of neovim after all
@teej_dv
@teej_dv 11 сағат бұрын
haha thanks
@FrankJonen
@FrankJonen 22 сағат бұрын
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
@tomaszgalkowski8701 21 сағат бұрын
You'd need a custom LSP.
@teej_dv
@teej_dv 11 сағат бұрын
ya custom LSP or a custom auto completion source. either would work probably
@ArisTheInquring
@ArisTheInquring 23 сағат бұрын
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
@teej_dv 11 сағат бұрын
I'm going to try it out for a month and give my thoughts as a comparison
@Junior.Nascimento
@Junior.Nascimento 12 сағат бұрын
this is fire
@teej_dv
@teej_dv 11 сағат бұрын
thanks!!
@keteremillpario
@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)
@blyedev
@blyedev 16 сағат бұрын
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
@teej_dv 11 сағат бұрын
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
@blyedev 2 сағат бұрын
@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!
@sayanta01
@sayanta01 22 сағат бұрын
can you make a video on: A new way to setup LSPs has been merged
@teej_dv
@teej_dv 11 сағат бұрын
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
@sayanta01 4 сағат бұрын
@@teej_dv ohk, btw thanks for this series
@thegreasetray7676
@thegreasetray7676 10 сағат бұрын
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
@thegreasetray7676 5 сағат бұрын
Ok, it was cuz of the code snippet lmao Realized it's a pretty neat feature after digging more into it.
@n.a.s1096
@n.a.s1096 23 сағат бұрын
Can you show how to use the built-in completion.
@teej_dv
@teej_dv 11 сағат бұрын
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
@usernr546
@usernr546 13 сағат бұрын
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?
@teej_dv
@teej_dv 11 сағат бұрын
hmm, maybe old nvim version? that's my only guess offhand. Otherwise i'd check the issue tracker
@EliasHansenu7f
@EliasHansenu7f 21 сағат бұрын
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
@sergioteixeira3313
@sergioteixeira3313 19 сағат бұрын
cant get buffer words working with blink though
@darkchoclate
@darkchoclate 18 сағат бұрын
I'm confused, how it's easier than cmp? You setup, you pass capabilities to lsp. that's it.
@teej_dv
@teej_dv 11 сағат бұрын
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)
@Peter-UK-nl6cv
@Peter-UK-nl6cv 23 сағат бұрын
mind blown
@leonardodavinci2856
@leonardodavinci2856 19 сағат бұрын
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.
@patricorgi
@patricorgi 16 сағат бұрын
basedpyright lsp does not offer such signature help, or is it because I didn't configure it properly?
@teej_dv
@teej_dv 11 сағат бұрын
it may be that the LSP does not support it, I'm not sure - sorry :/
@Ask-786
@Ask-786 20 сағат бұрын
Wanna give a try. Is it capable of showing the doc while scrolling through completions even before we actually select it huh?
@teej_dv
@teej_dv 11 сағат бұрын
I'm not sure - i have to explore the plugin a bit more
@overthinker8532
@overthinker8532 22 сағат бұрын
Thanks for this info (I dont even use neovim)
@teej_dv
@teej_dv 11 сағат бұрын
hahaha well thanks for the comment anyway!
@JoeBrigAI
@JoeBrigAI 15 сағат бұрын
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
@IainSimmons 14 сағат бұрын
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
@teej_dv 11 сағат бұрын
yup! basically every line of config is covered in the advent of nvim series
@kostadinterziev1453
@kostadinterziev1453 19 сағат бұрын
How does ur theme have that texture on it? Kinda feels like paper is it a plugin or terminal specific?
@teej_dv
@teej_dv 11 сағат бұрын
hahaha it's actually just some weird youtube encoding issue!
@karamanliev
@karamanliev 20 сағат бұрын
I cant make cmdline completion work with blink for some reason.
@teej_dv
@teej_dv 11 сағат бұрын
hmm, i haven't tried it out myself yet - i like the default completion stuff usually
@karamanliev
@karamanliev 9 минут бұрын
@@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,
@kpr3729
@kpr3729 17 сағат бұрын
Hope you can implement this on the kickstart-nvim repo soon
@teej_dv
@teej_dv 11 сағат бұрын
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
@kpr3729 10 сағат бұрын
@@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
@gungun974
@gungun974 2 сағат бұрын
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)
@idk-nv
@idk-nv 22 сағат бұрын
Nice vido, How to config source priority?
@teej_dv
@teej_dv 11 сағат бұрын
it's in the order of the sources in the list of config options
@halamadrid5238
@halamadrid5238 19 сағат бұрын
Swapped to blink last week and ITS SO FAST
@MonospaceMentor
@MonospaceMentor 13 сағат бұрын
Blink and you'll miss it!
@teej_dv
@teej_dv 11 сағат бұрын
ya, it does seem VERY snappy
@justincmendes
@justincmendes 18 сағат бұрын
D: y r u yelling at me
@iukys3889
@iukys3889 23 сағат бұрын
Is that it ??
@teej_dv
@teej_dv 11 сағат бұрын
that's it................
@terxxxz
@terxxxz 23 сағат бұрын
Is it JetBrainsMono?
@gerydony6531
@gerydony6531 22 сағат бұрын
looks like Berkeley Mono (paid font)
@terxxxz
@terxxxz 22 сағат бұрын
@@gerydony6531 ty
@teej_dv
@teej_dv 11 сағат бұрын
ya, berkeley mono - jetbrains mono is great though
@cz7259
@cz7259 21 сағат бұрын
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
@teej_dv 11 сағат бұрын
haha yes, some lsps could definitely go faster
@asg8813
@asg8813 23 сағат бұрын
Is this better than nvim-cmp? How?
@AhmadMughal1
@AhmadMughal1 21 сағат бұрын
much much faster and fuzzy finding as well
@런지부
@런지부 20 сағат бұрын
The repo says it's still beta , is it unstable? I should try it though
@AhmadMughal1
@AhmadMughal1 20 сағат бұрын
@@런지부 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.
@hugosales8102
@hugosales8102 23 сағат бұрын
C-n and C-p, common emacs w :v
@teej_dv
@teej_dv 11 сағат бұрын
haha i think c-n, c-p have been in vim for a long time (idk who had it first)
@hugosales8102
@hugosales8102 10 сағат бұрын
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
@SR-ti6jj
@SR-ti6jj 15 сағат бұрын
Hmm, so that's it?
@teej_dv
@teej_dv 11 сағат бұрын
haha that's it!
@alexferreira1534
@alexferreira1534 23 сағат бұрын
first!
@teej_dv
@teej_dv 11 сағат бұрын
first reply
@br4vetrave1er
@br4vetrave1er 22 сағат бұрын
lets type something! types kkk... me af 🗿
@teej_dv
@teej_dv 11 сағат бұрын
hahahaha
@mogambro
@mogambro 21 сағат бұрын
Ctrl-N and P are so wrong. Should be Ctrl-K and Ctrl-J instead
@willernst
@willernst 21 сағат бұрын
C-n and C-p are nice patterns to establish because they're ubiquitous, though.
@teej_dv
@teej_dv 11 сағат бұрын
:help ins-completion :)
@sairaj5660
@sairaj5660 23 сағат бұрын
benchod, this is way too easy to use as compared to nvim-cmp
@henryallenlaudemilk5161
@henryallenlaudemilk5161 20 сағат бұрын
Anyone use mini-completion? Why blink.nvim over mini-completion?
@teej_dv
@teej_dv 11 сағат бұрын
all the mini plugins are great, hard to go wrong with them
@Ghostbutfromdestiny2
@Ghostbutfromdestiny2 20 сағат бұрын
2 time but still curious, who no startup? (like alpha.nvim)
@teej_dv
@teej_dv 11 сағат бұрын
why startup? for me it doesn't give me any useful info haha
@Ghostbutfromdestiny2
@Ghostbutfromdestiny2 17 минут бұрын
@@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
@etiedem
@etiedem 21 сағат бұрын
Thanks!
@teej_dv
@teej_dv 20 сағат бұрын
Wow!! Thanks!! I really appreciate it!
Floating toggle-able terminal in Neovim in 50 lines of Lua
11:09
FILETREES ARE BAD BUT OIL NVIM IS GOOD
4:29
TJ DeVries
Рет қаралды 14 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Is Functional Programming DEAD Already?
21:07
Continuous Delivery
Рет қаралды 74 М.
The Secret Language Scaling WhatsApp and Discord
28:32
Theo - t3․gg
Рет қаралды 176 М.
How Git Changed Programming Forever
9:13
JetBrains Academy
Рет қаралды 2,8 М.
I built a REAL Desktop App with both Tauri and Electron
12:22
Bufferhead
Рет қаралды 68 М.
Why I Use C | Prime Reacts
13:00
ThePrimeTime
Рет қаралды 185 М.
Was I Wrong About Blazor? | Coding Shorts 111
16:35
Shawn Wildermuth
Рет қаралды 27 М.
The SQLite Rewrite In Rust
22:15
ThePrimeTime
Рет қаралды 110 М.
No-engine 2D rendering in 600 lines of code
23:21
Randy
Рет қаралды 42 М.
The Hard Truth About Harvard and MIT
14:46
Samuel Bosch
Рет қаралды 13 М.
DONT use Neovim!! (in these scenarios)
8:56
typecraft
Рет қаралды 46 М.