Тёмный

Neovim and Git: SOLVED 

typecraft
Подписаться 64 тыс.
Просмотров 58 тыс.
50% 1

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

Наука

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

 

25 июн 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 99   
@mahirabbas3700
@mahirabbas3700 4 месяца назад
thanks nerd!
@typecraft_dev
@typecraft_dev 4 месяца назад
there he is
@lenluin
@lenluin 4 месяца назад
Fugitive’s status window is the killer feature that you missed. Makes managing the commits so much simpler.
@typecraft_dev
@typecraft_dev 4 месяца назад
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 4 месяца назад
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 🙂
@mambusskruj
@mambusskruj 4 месяца назад
This is the highest quality youtube content about nvim I've ever seen. Top notch.
@restagner99
@restagner99 3 месяца назад
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
@fantero1649
@fantero1649 4 месяца назад
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 4 месяца назад
Hell yeah brother, thanks!
@friendly__drone9352
@friendly__drone9352 4 месяца назад
You're doing great TC! Converting the masses to Neovim
@cantucodes
@cantucodes 4 месяца назад
Amazing video! I had no idea gitsigns existed! What an awesome plugin.
@typecraft_dev
@typecraft_dev 4 месяца назад
Glad you liked the video! and yeah its a pretty great plugin
@juniorsundar
@juniorsundar 4 месяца назад
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 4 месяца назад
thanks! I'm glad you're enjoying the videos!
@kalanzi1000
@kalanzi1000 4 месяца назад
You are soo good at teaching and explaining stuff,i cant wait for you to start teaching any tech stack
@CrixuAMG
@CrixuAMG 4 месяца назад
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
@manee427
@manee427 4 месяца назад
Best Neovim config tutorial in youtube
@ahmadhassan90590
@ahmadhassan90590 9 дней назад
Next Level Productivity and Thanks
@Denis-wf4bl
@Denis-wf4bl 4 месяца назад
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 4 месяца назад
that was my workflow for the longest time. and I really think this is better. thanks for being a part of the gang!!!!
@lipegps
@lipegps 4 месяца назад
I love to use LazyGit inside NeoVim, great git UI.
@davidkagan7290
@davidkagan7290 4 месяца назад
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 4 месяца назад
conform.nvim is the plugin for that. Works great and will fallback to the default lsp formatter when no other formatter is available.
@gdnight
@gdnight 4 месяца назад
did you just give yourself a fake Neovim logo tattoo ?
@typecraft_dev
@typecraft_dev 4 месяца назад
… maybe 🤔
@jenkinpan185
@jenkinpan185 4 месяца назад
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!
@Redyf
@Redyf 4 месяца назад
Gitsigns might be good... but your videos are even BETTER!
@typecraft_dev
@typecraft_dev 4 месяца назад
awwwww
@nassehk
@nassehk 4 месяца назад
I liked git-fuggitive. Thanks for introducing it
@Saboor-Hamedi
@Saboor-Hamedi 4 месяца назад
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?
@pranavkarthikvijayan7586
@pranavkarthikvijayan7586 4 месяца назад
great video
@typecraft_dev
@typecraft_dev 4 месяца назад
Thanks!
@joergw
@joergw 4 месяца назад
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 4 месяца назад
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 4 месяца назад
Diffview is an amazing Plugin for this use case
@PetrenkoAndrii
@PetrenkoAndrii 4 месяца назад
Cool!🎉
@typecraft_dev
@typecraft_dev 4 месяца назад
Thanks!
@LinuxForLife
@LinuxForLife 3 месяца назад
Nice! 👍 Next one will be Telescope? 🎉
@PedroSanchez-od7cc
@PedroSanchez-od7cc 4 месяца назад
Good videos!
@typecraft_dev
@typecraft_dev 4 месяца назад
Glad you like them!
@littlecurrybread
@littlecurrybread 4 месяца назад
appreciate it!
@chris-ew9wl
@chris-ew9wl 4 месяца назад
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 4 месяца назад
i use this more than the command line Git commands
@domojestic4155
@domojestic4155 4 месяца назад
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 4 месяца назад
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 4 месяца назад
Give neogit a try!
@sachinmalik566
@sachinmalik566 4 месяца назад
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.
@RussFrizzell
@RussFrizzell 4 месяца назад
Best feature of Fugitive: Instead of :Git add, just do :Gw That will do the same thing for the current file. 😁
@EmileNani
@EmileNani 4 месяца назад
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?
@rules-nx5rk
@rules-nx5rk 4 месяца назад
we need a video about chatgpt plugins for nvim
@TheCazacuCristian
@TheCazacuCristian 4 месяца назад
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 4 месяца назад
popup terminal to open lazygit and flatten.nvim to edit in the current session
@nikolabanovic4833
@nikolabanovic4833 4 месяца назад
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
@martinezfg111
@martinezfg111 Месяц назад
Nice Neovim tat
@s-xatya5088
@s-xatya5088 4 месяца назад
Next video, Refactoring 🙌
@filippzakharov1378
@filippzakharov1378 4 месяца назад
Hi! What is the plugin for the line that shows temperature and current folder or what is it?
@typecraft_dev
@typecraft_dev 4 месяца назад
that is part of my tmux setup! here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-H70lULWJeig.htmlsi=yHHE6wNHsdhfhvXs
@filippzakharov1378
@filippzakharov1378 4 месяца назад
Thanks!) @@typecraft_dev
@LewiatanHPC
@LewiatanHPC 4 месяца назад
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 4 месяца назад
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 4 месяца назад
@@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 👊
@tahseenjamal
@tahseenjamal 25 дней назад
How did you do that where for adding a new file you have a pop up window to enter the name ?
@avishka-don
@avishka-don 4 месяца назад
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 4 месяца назад
SURE!
@CodingWithLewis
@CodingWithLewis 4 месяца назад
I just need to get gud and jump into NeoVim
@typecraft_dev
@typecraft_dev 4 месяца назад
Haha yup! Gotta figure out how to exit first
@secondculs
@secondculs 4 месяца назад
I'm trying to show the git branch in the left corner like you. Can somebody tell me how?
@BigToinE976
@BigToinE976 3 месяца назад
How to jump into the hunk preview window to copy what's inside ?
@amandin.
@amandin. 4 месяца назад
what theme are you using
@typecraft_dev
@typecraft_dev 4 месяца назад
Catppuccin mocha
@dezly-macauley
@dezly-macauley 4 месяца назад
😎🤘 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 4 месяца назад
Love hearing this! I'm glad you're getting so much out of these videos
@saurabhrane8039
@saurabhrane8039 3 месяца назад
Hey Nerd, are you not using warp anymore?
@alecclews
@alecclews 4 месяца назад
Is there is a reason this is not EP 7 in the Neovim course?
@2EOGIY
@2EOGIY 4 месяца назад
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 4 месяца назад
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 4 месяца назад
​@@typecraft_dev Lspconfig and lspsaga both plugins have code actions.
@AnthonyBullard
@AnthonyBullard 4 месяца назад
These code actions differ on the language/lsp. Some provide few fix up type actions, some provide too many (Haskell btw)
@glenrubenlarsen8479
@glenrubenlarsen8479 3 месяца назад
Did you cheekily edit in a neovim neck tattoo on yourself there for a moment?
@typecraft_dev
@typecraft_dev 3 месяца назад
maybe :)
@gjermundification
@gjermundification 4 месяца назад
3:52 Not to mention which comment to make on commit.
@Yunky_
@Yunky_ 4 месяца назад
Do autopairing next.
@Laggedskapari
@Laggedskapari 4 месяца назад
Noooooooo! Nerd nuked his moustache.
@typecraft_dev
@typecraft_dev 4 месяца назад
I’m growing it back as quick as I can I promise!
@arshadjaveed7877
@arshadjaveed7877 4 месяца назад
Basically, you start with vim and turn it into vscode
@pauliusjo
@pauliusjo 4 месяца назад
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.
@zolitakacs6306
@zolitakacs6306 4 месяца назад
lit fuggitive is older than me
@nairdesu
@nairdesu Месяц назад
nvim neck tattoo disappeared?👀 1:00
@prop3rrr
@prop3rrr Месяц назад
Try gitui;)
@MiguelLopez-mu1ss
@MiguelLopez-mu1ss 3 месяца назад
Just open lazygit in a floatng window
@ShaqarudenGames
@ShaqarudenGames 4 месяца назад
Would rather use lazygit than fugitive
@sumirandahal76
@sumirandahal76 4 месяца назад
Neovim 'N stands for the Nerd' Nerdvim
Далее
I'm never using Git the same way again
11:19
Просмотров 82 тыс.
NEOVIM GIT PRODUCTIVITY: 2024
10:22
Просмотров 3 тыс.
My Forever Dev Workflow
16:02
Просмотров 68 тыс.
The Holy Grail of Neovim Git Integrations
13:28
Просмотров 29 тыс.
Tmux will SKYROCKET your productivity - here’s how
10:02
simple neovim debugging setup (in 10 minutes)
9:36
Просмотров 26 тыс.
Why Neovim nerds are so obsessed with the terminal
6:44
Vim Tips I Wish I Knew Earlier
23:00
Просмотров 39 тыс.
Собери ПК и Получи 10,000₽
1:00
Просмотров 999 тыс.
Asus  VivoBook Винда за 8 часов!
1:00
Просмотров 1 млн