0 to LSP : Neovim RC From Scratch

  Рет қаралды 1,286,974

ThePrimeagen

ThePrimeagen

Күн бұрын

I setup the entire neovim experience from nothing to LSP!
Become a backend engineer. Its my favorite site
boot.dev/?promo=PRIMEAGENYT
This is also the best way to support me is to support yourself becoming a better backend engineer.
REPO: github.com/ThePrimeagen/init.lua
chapters
00:00 Introduction
00:35 Init.lua - Your First Files
02:23 The First Remap
03:43 Plugin Manager and Fuzzy Finder
07:07 Colorscheme
09:08 Treesitter
13:30 3 Must Have Plugins
18:06 LSP Setup
21:33 Editor Settings
24:24 THE BEST Remaps
29:40 Thank you
Twitch
Everything is built live on twitch
Twitch : bit.ly/3xhFO3E
Discord: discord.gg/ThePrimeagen
Spotify DevHour: open.spotify.com/show/4MLaDrQ...
Editor
All my videos are edited by Flip. Give him a follow! / flipmediaprod He is also open to do more editing, so slide deeeeeeeeep into his dms.
Join this channel to get access to perks:
/ @theprimeagen
Links
Linode: linode.com/prime
/ discord
Twitch: / theprimeagen
Insta: / theprimeagen
Twitter: / theprimeagen
VimRC & i3: github.com/ThePrimeagen/.dotf...
Keyboard 15% off bit.ly/Prime360 USE CODE PRIME360
#coding #neovim #typescript #programming #vim #softwareengineering #codinglife #webdesign #webdevelopment #webdev #javascript #rustlang #rust #twitch #twitchstreamer #programmerhumor #codinghumor #software #softwareengineer #softwaredeveloper #softwaredevelopment

Пікірлер: 2 100
@ThePrimeagen
@ThePrimeagen Жыл бұрын
*Requires neovim 0.9.x* This took 10 hours to record :) It was really really hard. I forgot to link this: github.com/ThePrimeagen/init.lua
@arcariusmexen1104
@arcariusmexen1104 Жыл бұрын
It's really good. Well done!
@ditchcomfort
@ditchcomfort Жыл бұрын
Can I pretty much copy/paste this configuration and be up and running?
@newsgroupsusenet5486
@newsgroupsusenet5486 Жыл бұрын
Good job, love your courses on FEM. Also hope that you can bring DevAsLife on KZfaq to your show! kzfaq.info/get/bejne/jrp3dKWls86WdY0.html
@ThePrimeagen
@ThePrimeagen Жыл бұрын
@@ditchcomfort yes
@jdawgforealz
@jdawgforealz Жыл бұрын
@@ditchcomfort You should be able to!
@captainbrainless
@captainbrainless Жыл бұрын
Small note: At 6:50, you need to have ripgrep installed to make the grep-keymap work.
@clearnitesky
@clearnitesky Жыл бұрын
thanks!
@GottZ
@GottZ Жыл бұрын
ye. he should have pointed out to go to the repo for further instructions. he has it in the readme for a couple months :)
@captainbrainless
@captainbrainless Жыл бұрын
@@GottZ thanks for the hint. For some odd reason, I had this self-implied (irrational) limitation of: „Either do it yourself from scratch OR check out the repo.“ 🙈 It’s generally advisable to look at every available information before starting.☝️
@iamvalenci4
@iamvalenci4 Жыл бұрын
thank you so much
@AbhayFaldu
@AbhayFaldu Жыл бұрын
Thanks a lot man
@martiananomaly
@martiananomaly Жыл бұрын
0:38 Just a reminder for people to use nvim command and not vim command to open neovim. He has the vim command aliased to open nvim.
@manofqwerty
@manofqwerty Жыл бұрын
Thanks for this - I created a alias in ~/.bashrc to have the same alias'
@zoc2
@zoc2 Жыл бұрын
Jeez,thanks for the reminder! I was so confused!
@swaeyl3883
@swaeyl3883 Жыл бұрын
OR, just use vim instead of nvim :)
@silak33
@silak33 Жыл бұрын
@@swaeyl3883 :O BLASPHEMY!!!
@pabloaguila7977
@pabloaguila7977 Жыл бұрын
not all heroes wear capes
@hm_webdev
@hm_webdev Жыл бұрын
Regarding the Harpoon keymaps, Prime uses a dvorak keyboard, so the equivalent keymaps for the ui.nav_file lines on a qwerty keyboard would be "", "", "" and "".
@ulicnikmark24
@ulicnikmark24 Жыл бұрын
You're a legend. I searched for comments containing harpoon to try to explain this, thanks!
@hm_webdev
@hm_webdev Жыл бұрын
@@ulicnikmark24 I'm happy this helped. Thanks for commenting :)
@adityapradhan675
@adityapradhan675 4 ай бұрын
God send!
@prawtism
@prawtism 4 ай бұрын
did this, I see he's switching between files with ctrl+t and ctrl+h, but for me neither these two nor hjkl do anything (Edit: was missing the < before every "C -" :D)
@gg1k
@gg1k 27 күн бұрын
Opposite problem. I was expecting to have to remap those to something nice on dvorak, only to discover it was already done.
@nickmead8146
@nickmead8146 6 ай бұрын
Anybody else have to watch this video at 0.75 speed just to follow along? Awesome stuff, thanks for sharing, @Theprimeagen!
@SlavkoStojshic
@SlavkoStojshic 5 ай бұрын
I'm glad I'm not the only one :) Great video, just way too fast for me to follow :)
@thux2828
@thux2828 4 ай бұрын
.75? You're quick. More like 0.5 and pausing to check the feed of keystrokes.
@mrfli24
@mrfli24 4 ай бұрын
I actually pressed the control to set to 0.75 then found out I had done that already.
@nostalgicnow6001
@nostalgicnow6001 4 ай бұрын
😅 I thought I was the only one 😂🤦🏾‍♂️
@nostalgicnow6001
@nostalgicnow6001 4 ай бұрын
@@thux2828😂 exactly
@Gokuroro
@Gokuroro Жыл бұрын
I never pre-like videos... but when I do, it is The Primeagen talking exactly about the topic I need to learn.
@nodidog
@nodidog Жыл бұрын
I usually get mildly annoyed at being told to like a video, but Prime is a rare exception that qualifies for a pre-like
@seantwie0316
@seantwie0316 Жыл бұрын
I did the same thing. Thanks Prime for showing me LSP Zero. I was struggling with nvim-cmp this morning.
@NeverCodeAlone
@NeverCodeAlone Жыл бұрын
I love his kind of art in his movies. I also do a lot of videos but can not do it so nice.
@marwanfikrat7716
@marwanfikrat7716 Жыл бұрын
I always pre-like this dudes videos. Even if I don't watch them
@NeverCodeAlone
@NeverCodeAlone Жыл бұрын
@@marwanfikrat7716 Open source passion - i love it!!
@nathanielthomas4437
@nathanielthomas4437 Ай бұрын
I would love an updated video. A lot has changed since this video came out, for example, Packer is deprecated and Harpoon is now on V2. It makes this a little harder to follow. But still an awesome video! Thanks!
@RT-ym9us
@RT-ym9us Жыл бұрын
I'm running this video at 0.5 speed to follow along, and by howdy is that a trip. Thanks for putting this together Prime!
@adamklar7935
@adamklar7935 Жыл бұрын
Wait wait, let me get my popcorn, blanket and laptop.
@sagarkapasi099
@sagarkapasi099 Жыл бұрын
I love this comment
@ahmadieb
@ahmadieb Жыл бұрын
Agreee watching this while waiting ❤️
@ericlawrencebrown3657
@ericlawrencebrown3657 Жыл бұрын
:this:
@hasanpasha01
@hasanpasha01 Жыл бұрын
Right now under my blanket, sipping tea and watching this video.
@BGraves
@BGraves 5 ай бұрын
You forgot your coconut oil and tissue
@earthling_parth
@earthling_parth Жыл бұрын
Prime, I'll do you one better by pre-thanking you! Words cannot describe how useful this video will be to me and many many other people starting out with Neovim. Much, much appreciated ♥️
@earthling_parth
@earthling_parth Жыл бұрын
After watching the video, I can say I learned much more than I expected. *SO MUCH COCONUT OIL* that my hands are _slipping_ from the keyboard 🤩
@nezby3945
@nezby3945 Жыл бұрын
I've got to say insane video! thanks for donating to this amazing person I've struggled a bit to configure neovim myself and this video explained it really well and in very nice detail I can even do my own remaps now! Amazing
@MurtagBY
@MurtagBY Жыл бұрын
Keep the energy bro. Thanks for your content, amazed how you keep positive vibe over so long and intense sessions - I get into more reflexive state really fast
@cagnolin.A
@cagnolin.A Жыл бұрын
Was just rewriting my vim config and stumbled upon this, love it! it helps that i learned so much of my vim setup from you in the past, so every plugin you mention is a slamdunk for me already.
@scottiedoesno
@scottiedoesno Жыл бұрын
Videos like this make vim SO much more approachable. If not for your original vimrc videos, I wouldn't have stuck with it for over 2 years at this point. Thank you for what you do!
@ThePrimeagen
@ThePrimeagen Жыл бұрын
yayayayaya
@eduingarciacordero9255
@eduingarciacordero9255 Жыл бұрын
the same here hahaaahah
@paulzupan3732
@paulzupan3732 10 ай бұрын
Yes same here. Prime was the one that explained plugins in a way that I finally understood. If not for prime, I'm not sure if I would even be as into tech in general as I am today.
@splitchunks7055
@splitchunks7055 Жыл бұрын
For those who find themselves faced with the following error from nvim-treesitter: "lua:86: Parser not available for language...'". Re-watch 11:18 but DO NOT add "help" to the "ensure_installed" options list. Instead, you'll want to replace it with "vimdoc". After that, as of writing this, you shouldn't get any parser errors coming from nvim-treesitter.
@r0yce
@r0yce Жыл бұрын
Thanks man.
@JuanSB827
@JuanSB827 Жыл бұрын
also, if you are on macOS (and u have apple silicon ) make sure your terminal app (e.g iTerm2) is not running in rosetta mode otherwise tree sitter will throw `wrong architecture needs arm64 found x86_64`
@greglocker2124
@greglocker2124 Жыл бұрын
​@@JuanSB827 nobody here made that mistake
@joshduffney7954
@joshduffney7954 Жыл бұрын
Thank you!
@wazz6003
@wazz6003 Жыл бұрын
Thanks dude!
@richa8855
@richa8855 6 ай бұрын
Ameutuer programmer and now comp sci major here, used vscode and the arduino ide for around a year before discovering your videos and eventually being convinced to move to vim, and now neovim. Just wanted to say thanks for all the useful information, switching to vim has been a real time-saver, and I can no longer live without the speed lol. Great stuff man.
@duwangchew
@duwangchew Жыл бұрын
This is amazing. Finally allowed me to properly use nvim. I tried other preconfigured nvim setups, like lunarvim or nvchad and never fully liked them. Yet messing around with nvim rc seemed daunting and other videos weren't quite as comprehensive. Thanks primeagen, keep up the good work.
@Don_XII
@Don_XII Жыл бұрын
Pressing the like button is honestly not enough for an effort like this. I have to thank you. Even though I have my own config it is always fun and interesting to see other people's setup. Thank you so much 🙏
@ingmarfalk3306
@ingmarfalk3306 Жыл бұрын
The best vim/nvim starter video I have seen to date. Love it, you really helped me actually understand and create my own nvim setup instead of mindlessly copying somebody elses config
@wolverine9632
@wolverine9632 Жыл бұрын
Man, I've been putting off switching to neovim for too long now. I can't thank you enough for this extremely helpful video!
@hasan_haja
@hasan_haja Жыл бұрын
This was absolutely incredible! In the process of switching over from vscode (vimmode) to neovim and this was massively helpful! Thank you so much!
@delusionalaar4031
@delusionalaar4031 Жыл бұрын
You inspired me to learn vim and everything that comes with it. Now it is one of the best tools I have. I extended that into everyday life and spend more time learning about my other tools. Thank you a ton. You're a great one.
@dannielrolfe8079
@dannielrolfe8079 Жыл бұрын
Thank you for such a fantastic walk through. I was looking for alternatives to my current IDE. This is exactly what I was looking for. The speed of these tools is impressive. Also I have been using Harpoon for a week now. What a solid tool. Great work.
@jumbo_mumbo1441
@jumbo_mumbo1441 Жыл бұрын
At 15:37 heard myself thinking "holy shit." I've been using vim for around 4 years now and just never really customized it much (used tmux while at my last job but just found it to be alright), but that harpoon just looks so amazing. So many improvements over vim in this video that I can't wait to use. Thanks so much Prime
@oajitho
@oajitho Жыл бұрын
I really needed a starter for neovim and this was really comprehensive. Thank you!
@Code12x
@Code12x Жыл бұрын
Honestly, I don't know how anyone is supposed to get started with vim without your videos... I've been going over your last several vim videos the past few days trying to figure out how to get it to work. This video helped more than you could imagine :D Thank you!
@ThePrimeagen
@ThePrimeagen Жыл бұрын
Let's go!!!!!
@greglocker2124
@greglocker2124 Жыл бұрын
​@@lostintheinternet2814 VSC is trash
@joshuarose20
@joshuarose20 11 ай бұрын
@@greglocker2124 we don't say that word here...
@S255fjrbr
@S255fjrbr 8 ай бұрын
you're the one who brought me into using vim. you make it so much easier and i love your energy. thank you! keep it up
@AubreyLavigne
@AubreyLavigne 6 ай бұрын
Thank you! I've been using vim full time since 2016, and I have been meaning to give Neovim a try but have been dragging my feet. This primer is a great entrypoint for understanding neovim configuration, so I actually have an idea how the neovim ecosystem actually works
@awabkhan2977
@awabkhan2977 Жыл бұрын
we need this video every year.
@lorebirb
@lorebirb Жыл бұрын
Yes!
@geekboy328
@geekboy328 Жыл бұрын
I've used vim on and off since college, but not gonna lie all the new complexity around LSP & Lua has kept me away from trying it seriously. I really appreciate having a resource like this that shows how to go from zero to an IDE-like experience. Keep up the good work!
@HarshYadav-yi7tv
@HarshYadav-yi7tv 7 ай бұрын
Bro, you just got my words ! Exactly the complexity around LSP & Lua is f*ckin sick. You have to spend ages to learn this stuff I will step back and would like to appreciate the beauty of simplicity of vim...
@tkd2526
@tkd2526 Жыл бұрын
Helpful mention for telescope's grep_string: "BurntSushi/ripgrep is required for live_grep and grep_string and is the first priority for find_files."
@Zerosupl
@Zerosupl Жыл бұрын
Thanks a lot :) I was wondering why this is not working.
@PeterJahnes
@PeterJahnes Жыл бұрын
Thank you for this!!!!!!
@sacredgeometry
@sacredgeometry Жыл бұрын
This should be pinned
@brenner1235
@brenner1235 10 ай бұрын
Thanks :)
@boiadeiro8272
@boiadeiro8272 Жыл бұрын
Damn, I can't imagine better way to dive into the vim. Thank you very much for all vim guides. I'm currently using Neovim full day on the job.
@112358d15
@112358d15 10 ай бұрын
Setting up my own nvim config along-side this video was great! (much pausing and seeking back needed ). Truly a great video. P.S. 8 months down the line some of the plugins have evolved from the versions shown in the video (i.e. the configuration snippets taken from the various plugin readme files don't match anymore).
@jona5002
@jona5002 Жыл бұрын
Amazing video! The information density is impressive. I have been on the journey for over a year now, but I still learned a lot in the past 30 minutes. I would absolutely love a video in this style about setting up the DAP. But most importantly, enjoy the Christmas break :)
@ThePrimeagen
@ThePrimeagen Жыл бұрын
Tyty
@denverfishsauce9977
@denverfishsauce9977 Жыл бұрын
Second the DAP. that's the last feature I'm interested in diving deep into with Neovim. Thanks again @ThePrimeagen
@maxreuv
@maxreuv Жыл бұрын
This is great. I particularly liked how `after` is being used to configure installed plugints.
@ThePrimeagen
@ThePrimeagen Жыл бұрын
yayaya!
@JohnCostanzo
@JohnCostanzo Жыл бұрын
Took me awhile to understand why he was doing this.
@SuperQuwertz
@SuperQuwertz Жыл бұрын
My after folder is not loading, but it works with other configs. What could I have done wrong?
@nicholaswatching
@nicholaswatching Жыл бұрын
@@SuperQuwertz same
@iron7956
@iron7956 7 ай бұрын
@@JohnCostanzo I don't understand, can you explain it to me?
@jeonghyunkim1579
@jeonghyunkim1579 11 ай бұрын
Such a great vid. I decided to use nvim as my primary editor and this vid. taught me literally everything about nvim configs. Thank you so much.
@balincarmichael7688
@balincarmichael7688 23 күн бұрын
If anyone is curious why when two windows are open only one of them have the transparent background, that's because the "normal" highlighting group doesn't include non-current windows. To set all of neovimt to be transparent, also use `vim.api.nvim_set_hl(0, "NormalNC, {})` for the normal non-current group.
@chrboesch
@chrboesch Жыл бұрын
I think it's great that you made this video, because now all newcomers can not only see how great (Neo)Vim is, but also get a very solid basic equipment at hand, which actually leaves nothing to be desired. And if you do, it's very easy to expand it. Thanks for that! 🙂
@MichaelDovgal
@MichaelDovgal Жыл бұрын
Oh man. I’m using vim and neovim for last six years, but never tried to setup it for more that just text editor. This is looks amazing! Inspiring! 🎉
@zehph
@zehph 7 ай бұрын
Great tutorial! I started using vim again after watching your stuff, I cobbled together a config with vimscript which is what I knew, but this video I have converted my setup to this modularized setup with lua and copied some sections, but made it my own with some different bindings and other plugins. This was quite comprehensive and easy to follow despite the huge amount of information.
@henriquefugaduran219
@henriquefugaduran219 10 ай бұрын
Excelent video, makes it very clear and fast. That leaves no time for you to think about if you're doing really the right thing configuring this damn thing and in the and, when you less expect, you have a nvim configured. Congrats my boy
@SownJevan
@SownJevan Жыл бұрын
This video is so damn fire. I like it a lot, the humour with prime just closes your eyes to the multiple errors along the way.
@ThePrimeagen
@ThePrimeagen Жыл бұрын
i think this is a compliment, ty
@sykotes
@sykotes Жыл бұрын
i didn't follow this exactly but i built up my own neovim by the end it took me in the range of 5 - 8 hours i think but its worth it because i not only know everything i have installed but i also understand how it all works and got to set my own binds. for someone who is new to neovim this was extremely helpful
@wiskasIO
@wiskasIO Жыл бұрын
I'm an old new programmer and I just get overwhelmed with this guy so easy but it only feeds my curiosity so much to aspire to higher levels of skill one day! 🙏
@airilsra
@airilsra Жыл бұрын
Can't thank you enough for this! I thought I was going to need several tries to make it works. But hey, it's all well and running on the first try. Thanks Primeagen!
@paterson.
@paterson. Жыл бұрын
My terminal colors went nuts when I installed the rose-pine package (7:10) for coloring (funnily all background went CYAN lol). It turned out the reason why the colors went haywire was because of the terminal I was using. (I was using just the native Mac terminal). I think it was something like rose-pine was using colors that the terminal didn't support. I installed iTerm2 and everything was good. Thanks for the video Primeagen!
@ofeenee
@ofeenee Жыл бұрын
I have the same problem. Thank you for sharing.
@reandov
@reandov Жыл бұрын
I'm having the same issue... I did't want to go to iterm2 but that will be the case now :)
@goshmain982
@goshmain982 Жыл бұрын
Thanks for helping
@ShadowKestrel
@ShadowKestrel Жыл бұрын
the default mac terminal doesn't support truecolor. Color schemes *do not like this one bit.*
@jayreddy6038
@jayreddy6038 11 ай бұрын
tmux is an alternative - supports truecolor
@DanielTateNZ
@DanielTateNZ Жыл бұрын
This is the best neovim video on the internet. We need a new one of these every 6 months to keep up to date with the best starting packages and if any apis of configs have changed. Awesome work.
@69beats420
@69beats420 2 ай бұрын
you don't know what you just did. I'm almost in tears. I thank you so much for this information, you just blessed everyone with the sauce. I cant thanks you enough! You are a great human being
@thgeremilrivera-thorsen9556
@thgeremilrivera-thorsen9556 Жыл бұрын
This is SUCH A GOOD VIDEO thank you. I have an old Vim-script setup that worked really well but needed an overhaul, didn't utilize LSP or Telescope or anything. And this video got me 50% of the way in no time.
@aaronmcadam
@aaronmcadam Жыл бұрын
I loved every second of this! More vim macro magic, please! 🙏
@AlexBlack-xz8hp
@AlexBlack-xz8hp Жыл бұрын
This is sooooo cool! Only wish I watched this like 15 years ago when I was first getting into coding. I remember trying to figure out why everyone loved vim so much and just never saw this side of it. This is awesome!
@ooogabooga5111
@ooogabooga5111 6 ай бұрын
I want to thank you primeagen after 1 month of neovim, everything is better now, life is alot greener. I do almost everything in neovim except java(my new hobby learning). Thank you for all your community contributions. Long live humanity.
@sinashariati4412
@sinashariati4412 Жыл бұрын
One of the bests videos I have ever seen on setting up neovim from scratch! Tnx man! I love your works!
@xtunasil0
@xtunasil0 Жыл бұрын
I recently started learning vim because of you. You make it look so easier and way less overcomplicated. I might definitely replace intelliJ (with which I'm proficient) with it soon. Thank you!
@greglocker2124
@greglocker2124 Жыл бұрын
Do it. Nobody ever told me those editors start lagging balls when you build a large codebase.
@xtunasil0
@xtunasil0 Жыл бұрын
@@greglocker2124 I'm working on a very large one. IntelliJ's products work pretty well on it except... When I switch to a previous version for XYZ reason. Then, the IDE starts to scan the repo(s) to rebuild its indexes and this takes a shit tons load of time. :/
@DanielRicardo-qb6ho
@DanielRicardo-qb6ho Жыл бұрын
Great video! I didn't know about the "after" folder trick - this is going to reduce some clutter in my config. I would add tpope's vim-surround and vim-repeat to the list of must-have plugins, as well as vim-sort-motion by christoomey
@DavidHanks90
@DavidHanks90 10 ай бұрын
No cap, this is amazing. I've bounced around editors for the past few years, most recently using VSCode with an extension that makes it work like Spacemacs (long story). This is great. I've used Vim bindings for a long time now and this was the push to get me fully onboard with using Vim as my actual editor. Harpoon is *chef's kiss* beautiful. Thanks for taking the time to make this!
@zekicaneksi
@zekicaneksi 10 ай бұрын
package manager used here is left to die... fuck this tutorial
@lucaug10
@lucaug10 11 ай бұрын
Great way to get started in neovim while also understanding what each part does and how to customize it to my taste Love it
@aziz0x00
@aziz0x00 Жыл бұрын
The keymaps at 25:36 for moving lines in visual mode are crazy!! Amazing video
@danielcooke3243
@danielcooke3243 Жыл бұрын
but also quite uneccesary imo, you rarely need to use visual mode - why not just d the lines and p them in where you want?
@aziz0x00
@aziz0x00 Жыл бұрын
@@danielcooke3243 they flicker on my computer also
@aziz0x00
@aziz0x00 Жыл бұрын
@@danielcooke3243 why not? because it automatically indents 👍
@filipslezak5152
@filipslezak5152 Жыл бұрын
Was doing 2-3 times but at last I found that building on top of nvchad config works the best for me.
@This_Guy-
@This_Guy- 7 ай бұрын
wow the way you customized vim is next level i followed your config as a templet and made it fully according to my preference . Thank you
@seanferney3621
@seanferney3621 11 ай бұрын
This is fantastic. Hugely helpful. Realized I was on 0.7.1 tho, but everything went smoothly after updating.
@Aikchun616
@Aikchun616 Жыл бұрын
Thanks for making neovim so much more accessible. Especially to a long time vim user. The LSP setup made it so much easier to start and get productive with my current projects. Really appreciate it!
@veerpratap1177
@veerpratap1177 Жыл бұрын
in lsp git directory i cant see the code for packer
@codyk3383
@codyk3383 Жыл бұрын
Former Vim user for 10 years, but switched to VSCode for TS/React. Going back. I love you, thank you for revitalizing my interest in Vim and Neovim. Everything made sense.
@MrAlexh037
@MrAlexh037 9 ай бұрын
Thanks for this! I’ve given Vim a try many times before but always ended up not using it. I think this time it’ll stick thanks to this walkthrough!
@trevor8416
@trevor8416 5 ай бұрын
I decided to get into vim the other day, after some googling I have found this video and I very much appreciate your work. Thank you!
@TBV4050
@TBV4050 Жыл бұрын
Nice to do this once a year or so as a way to see what you really still need and rethink some pieces that you don't like anymore.
@heitorvrb
@heitorvrb 2 ай бұрын
2024 Remake when
@TechnicolorMammoth
@TechnicolorMammoth Ай бұрын
Besides updated plugins, what else has changed that you can’t extrapolate yourself? Writing lua code and vim scripts hasn’t changed. Why does he need to spend another 10+ hours on this a year and a half over the previous was made? A lot if not everything is the same in this….
@erickgilmore3810
@erickgilmore3810 Ай бұрын
@@TechnicolorMammoth The only thing that has change is treesitter playground, its deprecated since the functionality is included in Neovim
@ofeenee
@ofeenee Ай бұрын
Yes please! Please please please remake with the lazy package manager! Please!🙏 🙏🙏🙏🙏
@JorgeAlvarez-tq3cb
@JorgeAlvarez-tq3cb Жыл бұрын
Such an awesome video, you saved me way too much time and headaches. Appreciate it a lot man! Your a really fun dude which makes it all the best :)
@blumaa
@blumaa Жыл бұрын
Man, Primeagen. This setup is so good. Especially Harpoon! I am doing a Brian Holt course on FE masters and couldn't help laugh when he dropped your name and said not everyone loves vscode. I've learned so much from you. Thx.
@esquilo_atomico
@esquilo_atomico Жыл бұрын
finalmente consegui entender como configurar o nvim, mt bom... e de quebra ainda deu pra aprender um pouco de lua
@hermessantos181
@hermessantos181 Жыл бұрын
meu problema só está dando ao configurar a leader key, sempre que entro e saio do vim ela não funciona mais, preciso is dentro do remap.lua e rodar :so de novo :(
@anthonyparks505
@anthonyparks505 Жыл бұрын
Thanks! Saved my ass after years of vscode hell and its terrible C++ support and general terribleness. Using the vim keybindings for years but nvim + tmux is all I need anymore. On top of that, I regained enthusiasm for my work because I am not yelling at my editor all the time. THANK YOU
@jobinthomas6372
@jobinthomas6372 6 ай бұрын
Can i ask which lsp you use for c++ ? Did you use Mason or something else?
@anthonyparks505
@anthonyparks505 6 ай бұрын
clangd based@@jobinthomas6372
@bmacf
@bmacf Ай бұрын
Knowledge + Charisma = Quality content. Amazing video. I've followed another guides and have mason as a plugin manager, but I'm really looking forward to implement some of your tweaks.
@industry_std
@industry_std Жыл бұрын
I don't know who needs to hear this, but order of operations matter when setting up remaps and options. I have spent 30 minutes trying to figure out why my pv wasn't working and the problem was the remap.lua was "required" before the set.lua thus the leader key was not yet remapped to the space key. Great video as always, though. Keep them coming.
@ThePrimeagen
@ThePrimeagen Жыл бұрын
Absolutely correct and my fault!!!
@cipher01
@cipher01 4 ай бұрын
@@ThePrimeagen pin this please !
@lostprince2251
@lostprince2251 3 ай бұрын
Hey, I'm completely new to this and have this issue. But I have no idea what you mean by 'remap.lua was "required" before the set.lua'... Can you tell me what to do to get this to work? For now, I'm trying to continue without remapping it, but I'd really appreciate the help :) Edit: Sorry, now that I have continued watching the Video I know what you mean, sadly this was not the issue that I was having :( If you want / know how to help anyway: When I press pv it doesn't recognize(?) it as leader and I just paste and then go into visual mode...
@jariocmjunior
@jariocmjunior 3 ай бұрын
@@lostprince2251 You need to prime the keys in a certain time to map works as expected (i.e. if you delay in prime " "pv the map maybe not work).
@lostprince2251
@lostprince2251 3 ай бұрын
@@jariocmjunior Oh wow, now I feel dumb, this was actually my problem, ty :)
@user-bs4gg8sq7h
@user-bs4gg8sq7h Жыл бұрын
Yet another great video! Could you also add setting up debugger in Nvim, working with virtualenvs and terminals (I use toggleterm and it's great)
@nemas4600
@nemas4600 Жыл бұрын
Thanks for the video. I already have a pretty good setup, but some of the mappings you have seems very useful so I will try them out for sure :)
@Spl4tt
@Spl4tt Жыл бұрын
That was excellent. Learned quite a few new remaps and settings here, thanks man
@richienguyen2703
@richienguyen2703 Жыл бұрын
For those of you who stuck from 2:32, I had a old version of Neovim (0.6.1) and installed the latest release (0.8.1). The error goes away!
@dave4347
@dave4347 Жыл бұрын
Yep, same. Wish I would have seen your comment first lol.
@selmanisaidamine9321
@selmanisaidamine9321 9 ай бұрын
just use unstabble version
@eamonburns9597
@eamonburns9597 6 ай бұрын
How did you install the version? The latest version apt has is 0.6.x
@aligulli123
@aligulli123 5 ай бұрын
@@eamonburns9597 download from the releases section of the neovim git repo. They have detailed instructions for every environment.
@rc8s
@rc8s 5 ай бұрын
@@eamonburns9597 Install it from source.
@itme_brain
@itme_brain Жыл бұрын
I can't believe all these cool tricks and very helpful and productive tips and tricks I learn everytime I watch your vim stuff.
@ArthurStomp
@ArthurStomp 9 ай бұрын
Always good to see the master at work :D . Thanks for the plugins tips.
@BRY0402
@BRY0402 2 ай бұрын
As a newcomer to vim, all i saw was you doing black magic
@khps9176
@khps9176 Жыл бұрын
I've been using Neovim with your config for 2 hours now, and absolutely love it! Never touched vim before this, time to ditch VSCode! Let's go!
@r2com641
@r2com641 Жыл бұрын
🤡
@greglocker2124
@greglocker2124 Жыл бұрын
Did you go past 2 hours?
@greglocker2124
@greglocker2124 Жыл бұрын
​@@r2com641 you should make that your pfp
@khps9176
@khps9176 Жыл бұрын
@@greglocker2124 I did! I'm still using neovim, not used vscode again at all.
@ShooterSF
@ShooterSF Жыл бұрын
Thank you. I have finally followed along with this and got a nice nvim setup on a new machine but also the confidence to tweak it afterwards. Btw if you slow the video down to 0.3 to figure out what key presses were being used you suddenly get to enjoy being taught by a drunk slurring Primeagen
@kataklasm5621
@kataklasm5621 Жыл бұрын
Thanks prime, this gave me the nudge to finally port my rc from vimscript to lua. Happy New Year, cheers.
@a8lg6p
@a8lg6p 8 ай бұрын
This is fantastic. After like 5 years of primarily using VSCode with Vim extensions, I think I want to make the switch. But... at the LSP part, and it looks like there have been a lot of breaking changes. Looks like I'm going to have to actually read and work my way through the docs... 😠
@oscare123
@oscare123 Жыл бұрын
His harpoon shortcuts make sense on dvorak. The equivalent for qwerty would be ctrl + h/j/k/l. These will clash with his quick fix navigation remaps so you'll need to find something that works for you (for example you could change the quickfix navs to use ctrl + uppercase J and K)
@NilEoe
@NilEoe Жыл бұрын
would ctrl + 9/0/-/= work?
@muhwyndham
@muhwyndham 10 ай бұрын
I use 9/0/-/= for hotkeys and use \ for harpoon window. it works flawlessly
@AdrianAyala
@AdrianAyala Жыл бұрын
You gained my subscription before I got your 'Thank you'. Thanks Primeagen, just recently discovered the channel, this video was actually really funny and educational
@juangiordana
@juangiordana Жыл бұрын
There aren't just enough likes for me to add to this video. I've watched it SO MANY times in the pasts few months and I just keep learning and improving my Neovim experience withi it. Thanks so much!
@chidam333
@chidam333 6 ай бұрын
bro what why do you rewatch it ??
@rbledsaw3
@rbledsaw3 Жыл бұрын
@11:48 if you are getting an error the "help" parser cannot be installed, it's because it's been renamed to "vimdoc" since this video has been made.
@eduardofernandes1770
@eduardofernandes1770 Жыл бұрын
ty
@jc021286
@jc021286 9 ай бұрын
thanks
@qmurec
@qmurec Жыл бұрын
Had to add a "require("user.packer")" to the lua/user/init.lua, otherwiese packer would not be loaded up when starting nvim. Otherwise: great video, really helped to get up to speed with neovim!
@williy_cole
@williy_cole Жыл бұрын
Thanks, you saved me from just going the lazyvim route. Been using vimplugins for a hot min and really wanna run a base set up before dabbling with something pre configured.
@AdamDymitruk
@AdamDymitruk 9 ай бұрын
Was wondering if this was done on purpose. I want to make a more thorough version of this video
@ScrotoTBaggins
@ScrotoTBaggins 2 ай бұрын
​@@AdamDymitrukDid you make a video? I'm getting a ritalin contact high from this video
@tortugatortuga7505
@tortugatortuga7505 24 күн бұрын
I was stuck at 4:38, thank you @qmurec
@lucky_luke4785
@lucky_luke4785 Жыл бұрын
i added some lualine and refined the colors to make it look how i want and now it's a really nice ide, thank you prime!
@hal1227
@hal1227 9 ай бұрын
Thanks - solved a lot of issues for setting up nvim. Really appreciate the channel!
@jdawgforealz
@jdawgforealz Жыл бұрын
Another thing to note, if you find some of his key mappings a little wonky, its because he's ascended as uses a non-standard keyboard layout like dvorak. Adjust to your liking!
@ThePrimeagen
@ThePrimeagen Жыл бұрын
facts
@sahilpatel8059
@sahilpatel8059 Жыл бұрын
I have been subscribed for a while and this video is a freaking God send, thank you so much! Definitely liked the video
@joergbeigang
@joergbeigang Жыл бұрын
Love the pace of your vid. Usually video tutorials are just so slow and make me skipping through. And I finally said good bye to my good old init.vim. Thanks for that!
@ThePrimeagen
@ThePrimeagen Жыл бұрын
yayayaya
@trevorstoddart9624
@trevorstoddart9624 Жыл бұрын
Do you use DAP? That's been my final hurdle for setup. Love that you are doing this, this is the biggest barrier to entry.
@andredealbuquerque105
@andredealbuquerque105 Жыл бұрын
would love to see more stuff with quick fix list
@FreddyRangel85
@FreddyRangel85 Жыл бұрын
Dude this was awesome for me as a Vim user for 10 years. I've been meaning to cleanup my Vim setup for such a long time but honestly ... I've forgot what half the things in the Vim setup ACTUALLY do. I'm removing a bunch of stuff and either replacing it with some of the simple remaps here or getting rid of it altogether. Also getting rid of CoC and putting LSP Zero in. I had such a headache with all the configuring I needed to do with that. Thanks for the vid!
@bob80808
@bob80808 11 ай бұрын
This video is just the best! I must have watched it like 5 times in the last six months... I have to watch it at x0.5 speed tho 🤣 great job as always!!
@splo2766
@splo2766 Жыл бұрын
I get into nvim recently, I am so happy about your video and I like your energy. Do you have any thoughts of starting with lunarvim project default as nvim config? I found it less scary / more practical rather than learning to do a config from scratch.
@ThePrimeagen
@ThePrimeagen Жыл бұрын
i don't love lunar vim, but its also really good place to start if you don't know about vim :)
@EthanBradley1231
@EthanBradley1231 Жыл бұрын
At 10:15, if you have never installed treesitter before then the "use" line in the video won't work. You need the following to install treesitter (then source the lua file and run PackerSync), and then you can change it to be the "use" line that Prime gave. use { 'nvim-treesitter/nvim-treesitter', run = function() local ts_update = require('nvim-treesitter.install').update({ with_sync = true }) ts_update() end, }
@pleasebcool2006
@pleasebcool2006 9 ай бұрын
you absolute hero thank you
@domizianoscarcelli1936
@domizianoscarcelli1936 3 ай бұрын
It has been a few months since I’ve installed vim extension in vscode to familiarize with vim motions, and now I feel like starting to make the switch. This video was fantastic to better understand the nvim setup, which can be overwhelming to a heavy vscoder lol. Also those remaps are ESSENTIAL
Teaching Neovim From Scratch To A Noob
1:12:55
TheVimeagen
Рет қаралды 169 М.
How to Vim in 2023: Tips and Tricks
15:53
ThePrimeagen
Рет қаралды 404 М.
마시멜로우로 체감되는 요즘 물가
00:20
진영민yeongmin
Рет қаралды 34 МЛН
Amazing weight loss transformation !! 😱😱
00:24
Tibo InShape
Рет қаралды 57 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:26
CRAZY GREAPA
Рет қаралды 19 МЛН
Little girl's dream of a giant teddy bear is about to come true #shorts
00:32
Effective Neovim: Instant IDE
16:16
TJ DeVries
Рет қаралды 789 М.
From Meth To Netflix
10:30
ThePrimeagen
Рет қаралды 737 М.
The One True Neovim Config
11:00
Sky Kosiner
Рет қаралды 4,5 М.
From 0 to IDE in NEOVIM from scratch | FREE COURSE // EP 1
19:48
Vim As Your Editor - Introduction
12:24
ThePrimeagen
Рет қаралды 844 М.
The End Of Jr Engineers
30:58
ThePrimeTime
Рет қаралды 395 М.
Why I Cant Stand IDE's After Using VIM | Prime Reacts
17:51
ThePrimeTime
Рет қаралды 281 М.
How programmers flex on each other
6:20
Fireship
Рет қаралды 2,3 МЛН
НОВЫЕ ФЕЙК iPHONE 🤯 #iphone
0:37
ALSER kz
Рет қаралды 226 М.
Сколько реально стоит ПК Величайшего?
0:37
Копия iPhone с WildBerries
1:00
Wylsacom
Рет қаралды 7 МЛН
Лазер против камеры смартфона
1:01
NEWTONLABS
Рет қаралды 710 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 7 МЛН