Neovim and Git: SOLVED

  Рет қаралды 53,851

typecraft

typecraft

Күн бұрын

X: / typecraft_dev
In this video, I want to show you how to get some amazing git functionality in neovim with a minimal configuration. As it turns out, you only need two plugins to get amazing git functionality in your config: fugitive and gitsigns.
Fugitive offers a comprehensive Git interface right inside Vim, while gitsigns adds convenient line-by-line change tracking in Neovim. This combination streamlines your Git workflow, making it more efficient and integrated with your coding environment. Join us to see how these tools can simplify and enhance your Git experience in Neovim.
This config comes from "Neovim for Newbs". Check it out here! • Neovim for Newbs. FREE...
00:00 Introduction
01:36 Gitsigns
05:01 Vim Fugitive
07:35 Outro

Пікірлер: 95
@mahirabbas3700
@mahirabbas3700 3 ай бұрын
thanks nerd!
@typecraft_dev
@typecraft_dev 3 ай бұрын
there he is
@lenluin
@lenluin 3 ай бұрын
Fugitive’s status window is the killer feature that you missed. Makes managing the commits so much simpler.
@typecraft_dev
@typecraft_dev 3 ай бұрын
oh damn! I gotta admit I use fugitive pretty lightly in my day-to-day work so I may have missed more in-depth features
@runeenggaardlausen1135
@runeenggaardlausen1135 3 ай бұрын
I agree with @lenluin. Try :Git without any arguments. This is where Fugitive really shines IMHO. As a side note: It's ok just to write G and save a few keystrokes 🙂
@restagner99
@restagner99 2 ай бұрын
Thanks for taking the time to put this together. I recently transitioned away from vim-fugitive to neogit. Personal preference, but I think neogit is just more tightly integrated into neovim
@lipegps
@lipegps 3 ай бұрын
I love to use LazyGit inside NeoVim, great git UI.
@mambusskruj
@mambusskruj 3 ай бұрын
This is the highest quality youtube content about nvim I've ever seen. Top notch.
@fantero1649
@fantero1649 3 ай бұрын
absolute game changer, been following for a while and I've got no regrets at all. You're probably the most interactive and beginner friendly neovim content creator I've seen and im glad I stumbled upon your channel when I was making the switch. Thanks and lots of love (nerd)
@typecraft_dev
@typecraft_dev 3 ай бұрын
Hell yeah brother, thanks!
@CrixuAMG
@CrixuAMG 3 ай бұрын
Great video! Love the series so far, it has really helped me to understand neovim and the way plugins work within it! Could you please also make a video on ToggleTerm or any alternative you think is better? Having a background terminal for for example running a watch command that you can popup whenever you need it would be a great addition in my opinion
@kalanzi1000
@kalanzi1000 3 ай бұрын
You are soo good at teaching and explaining stuff,i cant wait for you to start teaching any tech stack
@juniorsundar
@juniorsundar 3 ай бұрын
I like this series a lot. Getting a minimum viable Neovim with a scalable plugin management system in place is the biggest hump for any newbie. Once you’re over that it’s all smooth sailing. Lua isn’t particularly a tough language to learn and breaking Neovim isn’t so catastrophic as long as you keep a backup of a stable Neovim config handy. Great work nerd!
@typecraft_dev
@typecraft_dev 3 ай бұрын
thanks! I'm glad you're enjoying the videos!
@cantucodes
@cantucodes 3 ай бұрын
Amazing video! I had no idea gitsigns existed! What an awesome plugin.
@typecraft_dev
@typecraft_dev 3 ай бұрын
Glad you liked the video! and yeah its a pretty great plugin
@friendly__drone9352
@friendly__drone9352 3 ай бұрын
You're doing great TC! Converting the masses to Neovim
@Denis-wf4bl
@Denis-wf4bl 3 ай бұрын
Thank you so much for the video! It's really informative. I will try out vim-fugitive. My current workflow is to open a tmux pane and then enter the git commands. With vim-fugitive I will save a step 🤭
@typecraft_dev
@typecraft_dev 3 ай бұрын
that was my workflow for the longest time. and I really think this is better. thanks for being a part of the gang!!!!
@Saboor-Hamedi
@Saboor-Hamedi 3 ай бұрын
I have a question: Your Neovim looks quite clean, unlike mine. In my setup, the theme doesn't cover the entire workbench, particularly on the right side. When I move the cursor, it doesn't look nice on the eyes. How can I solve that?
@manee427
@manee427 3 ай бұрын
Best Neovim config tutorial in youtube
@davidkagan7290
@davidkagan7290 3 ай бұрын
I think these videos are absolutely amazing, thank you for making them! They're slowly moving me away from using a neovim "distro", and that's one of my goals. One of the things that I miss is having is a file/buffer format on save using a preferred formatter for the language per file/buffer.
@TannerEllen
@TannerEllen 3 ай бұрын
conform.nvim is the plugin for that. Works great and will fallback to the default lsp formatter when no other formatter is available.
@jenkinpan185
@jenkinpan185 3 ай бұрын
I think the Fugitive is unnessary for me. Because I found out the neotree also has a nice gui for showing git status, git add and commit even push it. but I do really like the gitsigns to show my change. Thanks for your sharing!
@joergw
@joergw 3 ай бұрын
Wow, really nice 🤘 Are those plugins also good for diff's and merging conflicts? These are typical some tasks, which needs a really good visualization
@typecraft_dev
@typecraft_dev 3 ай бұрын
you can use fugitive for merge conflicts for sure. I use lazygit for that typically (I have a video on it in this channel)
@user-ks4jy9pe9h
@user-ks4jy9pe9h 3 ай бұрын
Diffview is an amazing Plugin for this use case
@gdnight
@gdnight 3 ай бұрын
did you just give yourself a fake Neovim logo tattoo ?
@typecraft_dev
@typecraft_dev 3 ай бұрын
… maybe 🤔
@nassehk
@nassehk 3 ай бұрын
I liked git-fuggitive. Thanks for introducing it
@EmileNani
@EmileNani 3 ай бұрын
Thanks nerd! I use gitsigns and I use lazygit in a tmux-popup over my neovim. How much am I really missing out by not utilising fugitive?
@sachinmalik566
@sachinmalik566 3 ай бұрын
Can you please help customize the neo-tree icons? Pretty please? The default ones don't look so good and I can't change it without breaking something else.
@domojestic4155
@domojestic4155 3 ай бұрын
Awesome video! Personally, I think a good way (for me) to integrate Git seemlessly into my workflow is having Lazygit open in another tmux window/pane, and then just hopping back and forth. No shade to TPope, he's a phenomenally talented programmer, but I just don't think vim-fugitive will be for me. The gitsigns plugin is pretty neat, though! That's the benefit of a modular plugin system, for sure! 😁
@typecraft_dev
@typecraft_dev 3 ай бұрын
Yup, and that is how I currently use lazygit. I like fugitive at least for Git blaming files. It feels a little quicker to me than trying to do the same in lazygit. But I'm with you, lazygit is always open in another pane for me
@derpenstocks
@derpenstocks 3 ай бұрын
Give neogit a try!
@Redyf
@Redyf 3 ай бұрын
Gitsigns might be good... but your videos are even BETTER!
@typecraft_dev
@typecraft_dev 3 ай бұрын
awwwww
@LewiatanHPC
@LewiatanHPC 3 ай бұрын
To be honest, after a recent video about Lazy Git I was expecting the Lazy Git plugin :D Any reasons you used Fugitive instead of LG plugin?
@typecraft_dev
@typecraft_dev 3 ай бұрын
I actually use both. I use lazygit on its own in a separate pane. And when spot-checking files with git blame, I use fugitive
@LewiatanHPC
@LewiatanHPC 3 ай бұрын
@@typecraft_dev I see. Actually git blame seems really usefull so I could use that for. But also for now for me it seems much easier to run lazygit directly in neovim rather than separate instance. Maybe because I'm not using tmux yet 🤔 Nevertheless, thanks for the series! It really helped me do a decent progres with switching to neovim 👊
@chris-ew9wl
@chris-ew9wl 3 ай бұрын
you forgot to show :G which is fugitive's status window, where you can stage the whole file and even hunk files, it also shows you the changes you made by pressing = on the filter itself.
@bartstavenuiter9895
@bartstavenuiter9895 3 ай бұрын
i use this more than the command line Git commands
@littlecurrybread
@littlecurrybread 3 ай бұрын
appreciate it!
@filippzakharov1378
@filippzakharov1378 3 ай бұрын
Hi! What is the plugin for the line that shows temperature and current folder or what is it?
@typecraft_dev
@typecraft_dev 3 ай бұрын
that is part of my tmux setup! here: kzbin.info/www/bejne/fmiTnYiCjK-Yn8ksi=yHHE6wNHsdhfhvXs
@filippzakharov1378
@filippzakharov1378 3 ай бұрын
Thanks!) @@typecraft_dev
@pranavkarthikvijayan7586
@pranavkarthikvijayan7586 3 ай бұрын
great video
@typecraft_dev
@typecraft_dev 3 ай бұрын
Thanks!
@nikolabanovic4833
@nikolabanovic4833 3 ай бұрын
Can you make a video about using your local nvim config for developing in remote environemnts, like in a docker container? I'm having trouble getting LSP to work there
@PedroSanchez-od7cc
@PedroSanchez-od7cc 3 ай бұрын
Good videos!
@typecraft_dev
@typecraft_dev 3 ай бұрын
Glad you like them!
@avishka-don
@avishka-don 3 ай бұрын
Hey love your series, I’ve been trying to add GitHub copilot but kept getting some issues around the module is not being loaded. Can you make a video on how I can add it?
@typecraft_dev
@typecraft_dev 3 ай бұрын
SURE!
@PetrenkoAndrii
@PetrenkoAndrii 3 ай бұрын
Cool!🎉
@typecraft_dev
@typecraft_dev 3 ай бұрын
Thanks!
@secondculs
@secondculs 3 ай бұрын
I'm trying to show the git branch in the left corner like you. Can somebody tell me how?
@TheCazacuCristian
@TheCazacuCristian 3 ай бұрын
I also integrated lazygit directly in vim through the popup terminal and when I edit a file it opens directly in the current vim session, by the way nice video 😍
@aarond309
@aarond309 3 ай бұрын
popup terminal to open lazygit and flatten.nvim to edit in the current session
@BigToinE976
@BigToinE976 2 ай бұрын
How to jump into the hunk preview window to copy what's inside ?
@saurabhrane8039
@saurabhrane8039 2 ай бұрын
Hey Nerd, are you not using warp anymore?
@rules-nx5rk
@rules-nx5rk 3 ай бұрын
we need a video about chatgpt plugins for nvim
@LinuxForLife
@LinuxForLife 2 ай бұрын
Nice! 👍 Next one will be Telescope? 🎉
@martinezfg111
@martinezfg111 10 күн бұрын
Nice Neovim tat
@s-xatya5088
@s-xatya5088 3 ай бұрын
Next video, Refactoring 🙌
@alecclews
@alecclews 3 ай бұрын
Is there is a reason this is not EP 7 in the Neovim course?
@RussFrizzell
@RussFrizzell 3 ай бұрын
Best feature of Fugitive: Instead of :Git add, just do :Gw That will do the same thing for the current file. 😁
@2EOGIY
@2EOGIY 3 ай бұрын
Noob question: is there a plugin to refactor issues suggested by linter? or if it is already in neovim then how to do it?
@typecraft_dev
@typecraft_dev 3 ай бұрын
If you have something running a linter. That should be able to solve your problem. Maybe theres a code-action function for the plugin you're uisng for your linter?
@Shivam-to8wc
@Shivam-to8wc 3 ай бұрын
​@@typecraft_dev Lspconfig and lspsaga both plugins have code actions.
@AnthonyBullard
@AnthonyBullard 3 ай бұрын
These code actions differ on the language/lsp. Some provide few fix up type actions, some provide too many (Haskell btw)
@amandin.
@amandin. 3 ай бұрын
what theme are you using
@typecraft_dev
@typecraft_dev 3 ай бұрын
Catppuccin mocha
@pauliusjo
@pauliusjo 3 ай бұрын
that neovim configuration, I can't replicate on Windows11 please someone help me with how to set environmental variables to point to python3 :checkhealth provider Python 3 provider (optional) ~ - WARNING No Python executable found that can `import neovim`. Using the first available executable for diagnostics. - WARNING Could not load Python 3: python3 not found in search path or not executable.
@dezly-macauley
@dezly-macauley 3 ай бұрын
😎🤘 Before I knew about this channel I was using Neovim with VS Codium as a backup. Each video this guy makes is making my old setup on VS Codium less appealing. Might as well uninstall it.
@typecraft_dev
@typecraft_dev 3 ай бұрын
Love hearing this! I'm glad you're getting so much out of these videos
@Laggedskapari
@Laggedskapari 3 ай бұрын
Noooooooo! Nerd nuked his moustache.
@typecraft_dev
@typecraft_dev 3 ай бұрын
I’m growing it back as quick as I can I promise!
@Yunky_
@Yunky_ 3 ай бұрын
Do autopairing next.
@gjermundification
@gjermundification 3 ай бұрын
3:52 Not to mention which comment to make on commit.
@CodingWithLewis
@CodingWithLewis 3 ай бұрын
I just need to get gud and jump into NeoVim
@typecraft_dev
@typecraft_dev 3 ай бұрын
Haha yup! Gotta figure out how to exit first
@glenrubenlarsen8479
@glenrubenlarsen8479 2 ай бұрын
Did you cheekily edit in a neovim neck tattoo on yourself there for a moment?
@typecraft_dev
@typecraft_dev 2 ай бұрын
maybe :)
@zolitakacs6306
@zolitakacs6306 3 ай бұрын
lit fuggitive is older than me
@nairdesu
@nairdesu 8 күн бұрын
nvim neck tattoo disappeared?👀 1:00
@arshadjaveed7877
@arshadjaveed7877 3 ай бұрын
Basically, you start with vim and turn it into vscode
@MiguelLopez-mu1ss
@MiguelLopez-mu1ss 2 ай бұрын
Just open lazygit in a floatng window
@ShaqarudenGames
@ShaqarudenGames 3 ай бұрын
Would rather use lazygit than fugitive
@sumirandahal76
@sumirandahal76 3 ай бұрын
Neovim 'N stands for the Nerd' Nerdvim
Tmux will SKYROCKET your productivity - here’s how
10:02
typecraft
Рет қаралды 60 М.
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 97 МЛН
ХОТЯ БЫ КИНОДА 2 - официальный фильм
1:35:34
ХОТЯ БЫ В КИНО
Рет қаралды 1,8 МЛН
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 61 МЛН
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 17 МЛН
Lazygit
8:06
DevOnDuty
Рет қаралды 51 М.
Neovim Is a Waste Of Time, And I LOVE It | Prime Reacts
17:00
ThePrimeTime
Рет қаралды 83 М.
Native JSON in OTP 27! (Elixir, Erlang, Gleam)
2:03
Code & Stuff
Рет қаралды 590
I'm never using Git the same way again
11:19
typecraft
Рет қаралды 79 М.
What the hell is a Tiling Window Manager? Linux For Newbs EP 2
12:33
Git MERGE vs REBASE: Everything You Need to Know
4:34
ByteByteGo
Рет қаралды 318 М.
Why Neovim nerds are so obsessed with the terminal
6:44
Joshua Morony
Рет қаралды 71 М.
How Git Works: Explained in 4 Minutes
4:18
ByteByteGo
Рет қаралды 121 М.
The power button can never be pressed!!
0:57
Maker Y
Рет қаралды 49 МЛН
Introducing GPT-4o
26:13
OpenAI
Рет қаралды 4,3 МЛН
Apple. 10 Интересных Фактов
24:26
Dameoz
Рет қаралды 119 М.
Apple ХОЧЕТ, чтобы iPhone ЛОМАЛИСЬ чаще?
0:47
ÉЖИ АКСЁНОВ
Рет қаралды 2,2 МЛН
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11
How charged your battery?
0:14
V.A. show / Магика
Рет қаралды 87 М.