Neovim and Git: SOLVED
Vložit
- čas přidán 19. 06. 2024
- 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 - Věda a technologie
thanks nerd!
there he is
Fugitive’s status window is the killer feature that you missed. Makes managing the commits so much simpler.
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
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 🙂
This is the highest quality youtube content about nvim I've ever seen. Top notch.
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
Amazing video! I had no idea gitsigns existed! What an awesome plugin.
Glad you liked the video! and yeah its a pretty great plugin
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)
Hell yeah brother, thanks!
You are soo good at teaching and explaining stuff,i cant wait for you to start teaching any tech stack
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!
thanks! I'm glad you're enjoying the videos!
You're doing great TC! Converting the masses to Neovim
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
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 🤭
that was my workflow for the longest time. and I really think this is better. thanks for being a part of the gang!!!!
Best Neovim config tutorial in youtube
I love to use LazyGit inside NeoVim, great git UI.
Next Level Productivity and Thanks
did you just give yourself a fake Neovim logo tattoo ?
… maybe 🤔
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.
conform.nvim is the plugin for that. Works great and will fallback to the default lsp formatter when no other formatter is available.
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.
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!
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?
I liked git-fuggitive. Thanks for introducing it
Gitsigns might be good... but your videos are even BETTER!
awwwww
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
you can use fugitive for merge conflicts for sure. I use lazygit for that typically (I have a video on it in this channel)
Diffview is an amazing Plugin for this use case
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.
i use this more than the command line Git commands
I'm trying to show the git branch in the left corner like you. Can somebody tell me how?
How did you do that where for adding a new file you have a pop up window to enter the name ?
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?
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 😍
popup terminal to open lazygit and flatten.nvim to edit in the current session
appreciate it!
How to jump into the hunk preview window to copy what's inside ?
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! 😁
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
Give neogit a try!
great video
Thanks!
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?
SURE!
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?
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
@@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 👊
Hi! What is the plugin for the line that shows temperature and current folder or what is it?
that is part of my tmux setup! here: czcams.com/video/H70lULWJeig/video.htmlsi=yHHE6wNHsdhfhvXs
Thanks!) @@typecraft_dev
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
Good videos!
Glad you like them!
Cool!🎉
Thanks!
what theme are you using
Catppuccin mocha
Is there is a reason this is not EP 7 in the Neovim course?
Noob question: is there a plugin to refactor issues suggested by linter? or if it is already in neovim then how to do it?
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?
@@typecraft_dev Lspconfig and lspsaga both plugins have code actions.
These code actions differ on the language/lsp. Some provide few fix up type actions, some provide too many (Haskell btw)
Nice! 👍
Next one will be Telescope? 🎉
Nice Neovim tat
Hey Nerd, are you not using warp anymore?
we need a video about chatgpt plugins for nvim
Next video, Refactoring 🙌
Best feature of Fugitive: Instead of :Git add, just do :Gw
That will do the same thing for the current file. 😁
😎🤘 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.
Love hearing this! I'm glad you're getting so much out of these videos
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.
I just need to get gud and jump into NeoVim
Haha yup! Gotta figure out how to exit first
3:52 Not to mention which comment to make on commit.
Did you cheekily edit in a neovim neck tattoo on yourself there for a moment?
maybe :)
Do autopairing next.
Noooooooo! Nerd nuked his moustache.
I’m growing it back as quick as I can I promise!
lit fuggitive is older than me
nvim neck tattoo disappeared?👀 1:00
Basically, you start with vim and turn it into vscode
Try gitui;)
Just open lazygit in a floatng window
Would rather use lazygit than fugitive
Neovim 'N stands for the Nerd' Nerdvim