Neovim and Git: SOLVED

Sdílet
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

Komentáře • 99

  • @mahirabbas3700
    @mahirabbas3700 Před 4 měsíci +27

    thanks nerd!

  • @lenluin
    @lenluin Před 4 měsíci +17

    Fugitive’s status window is the killer feature that you missed. Makes managing the commits so much simpler.

    • @typecraft_dev
      @typecraft_dev  Před 4 měsíci

      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 Před 4 měsíci +1

      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 Před 4 měsíci +1

    This is the highest quality youtube content about nvim I've ever seen. Top notch.

  • @restagner99
    @restagner99 Před 3 měsíci

    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

  • @cantucodes
    @cantucodes Před 4 měsíci +4

    Amazing video! I had no idea gitsigns existed! What an awesome plugin.

    • @typecraft_dev
      @typecraft_dev  Před 4 měsíci +1

      Glad you liked the video! and yeah its a pretty great plugin

  • @fantero1649
    @fantero1649 Před 4 měsíci +2

    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)

  • @kalanzi1000
    @kalanzi1000 Před 4 měsíci +1

    You are soo good at teaching and explaining stuff,i cant wait for you to start teaching any tech stack

  • @juniorsundar
    @juniorsundar Před 4 měsíci +2

    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  Před 4 měsíci +1

      thanks! I'm glad you're enjoying the videos!

  • @friendly__drone9352
    @friendly__drone9352 Před 4 měsíci +1

    You're doing great TC! Converting the masses to Neovim

  • @CrixuAMG
    @CrixuAMG Před 4 měsíci

    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

  • @Denis-wf4bl
    @Denis-wf4bl Před 4 měsíci +1

    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  Před 4 měsíci +1

      that was my workflow for the longest time. and I really think this is better. thanks for being a part of the gang!!!!

  • @manee427
    @manee427 Před 4 měsíci +1

    Best Neovim config tutorial in youtube

  • @lipegps
    @lipegps Před 3 měsíci +2

    I love to use LazyGit inside NeoVim, great git UI.

  • @ahmadhassan90590
    @ahmadhassan90590 Před 4 dny

    Next Level Productivity and Thanks

  • @gdnight
    @gdnight Před 4 měsíci +49

    did you just give yourself a fake Neovim logo tattoo ?

  • @davidkagan7290
    @davidkagan7290 Před 4 měsíci +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 Před 4 měsíci

      conform.nvim is the plugin for that. Works great and will fallback to the default lsp formatter when no other formatter is available.

  • @sachinmalik566
    @sachinmalik566 Před 4 měsíci

    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.

  • @jenkinpan185
    @jenkinpan185 Před 4 měsíci

    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!

  • @Saboor-Hamedi
    @Saboor-Hamedi Před 4 měsíci

    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?

  • @nassehk
    @nassehk Před 4 měsíci

    I liked git-fuggitive. Thanks for introducing it

  • @Redyf
    @Redyf Před 4 měsíci +1

    Gitsigns might be good... but your videos are even BETTER!

  • @joergw
    @joergw Před 4 měsíci +1

    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  Před 4 měsíci +1

      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 Před 4 měsíci +2

      Diffview is an amazing Plugin for this use case

  • @chris-ew9wl
    @chris-ew9wl Před 4 měsíci +2

    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.

  • @secondculs
    @secondculs Před 4 měsíci

    I'm trying to show the git branch in the left corner like you. Can somebody tell me how?

  • @tahseenjamal
    @tahseenjamal Před 19 dny

    How did you do that where for adding a new file you have a pop up window to enter the name ?

  • @EmileNani
    @EmileNani Před 4 měsíci

    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?

  • @TheCazacuCristian
    @TheCazacuCristian Před 4 měsíci +2

    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 Před 4 měsíci +1

      popup terminal to open lazygit and flatten.nvim to edit in the current session

  • @littlecurrybread
    @littlecurrybread Před 4 měsíci

    appreciate it!

  • @BigToinE976
    @BigToinE976 Před 3 měsíci

    How to jump into the hunk preview window to copy what's inside ?

  • @domojestic4155
    @domojestic4155 Před 4 měsíci +2

    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  Před 4 měsíci

      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 Před 4 měsíci

      Give neogit a try!

  • @pranavkarthikvijayan7586
    @pranavkarthikvijayan7586 Před 3 měsíci +1

    great video

  • @avishka-don
    @avishka-don Před 4 měsíci +1

    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?

  • @LewiatanHPC
    @LewiatanHPC Před 4 měsíci +1

    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  Před 4 měsíci +1

      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 Před 4 měsíci

      @@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 👊

  • @filippzakharov1378
    @filippzakharov1378 Před 4 měsíci +1

    Hi! What is the plugin for the line that shows temperature and current folder or what is it?

    • @typecraft_dev
      @typecraft_dev  Před 4 měsíci

      that is part of my tmux setup! here: czcams.com/video/H70lULWJeig/video.htmlsi=yHHE6wNHsdhfhvXs

    • @filippzakharov1378
      @filippzakharov1378 Před 4 měsíci

      Thanks!) @@typecraft_dev

  • @nikolabanovic4833
    @nikolabanovic4833 Před 4 měsíci

    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 Před 4 měsíci

    Good videos!

  • @PetrenkoAndrii
    @PetrenkoAndrii Před 4 měsíci +1

    Cool!🎉

  • @amandin.
    @amandin. Před 4 měsíci +1

    what theme are you using

  • @alecclews
    @alecclews Před 4 měsíci

    Is there is a reason this is not EP 7 in the Neovim course?

  • @2EOGIY
    @2EOGIY Před 4 měsíci

    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  Před 4 měsíci

      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 Před 4 měsíci

      ​@@typecraft_dev Lspconfig and lspsaga both plugins have code actions.

    • @AnthonyBullard
      @AnthonyBullard Před 4 měsíci

      These code actions differ on the language/lsp. Some provide few fix up type actions, some provide too many (Haskell btw)

  • @LinuxForLife
    @LinuxForLife Před 3 měsíci

    Nice! 👍
    Next one will be Telescope? 🎉

  • @martinezfg111
    @martinezfg111 Před měsícem

    Nice Neovim tat

  • @saurabhrane8039
    @saurabhrane8039 Před 3 měsíci

    Hey Nerd, are you not using warp anymore?

  • @rules-nx5rk
    @rules-nx5rk Před 4 měsíci +2

    we need a video about chatgpt plugins for nvim

  • @s-xatya5088
    @s-xatya5088 Před 4 měsíci

    Next video, Refactoring 🙌

  • @RussFrizzell
    @RussFrizzell Před 4 měsíci +1

    Best feature of Fugitive: Instead of :Git add, just do :Gw
    That will do the same thing for the current file. 😁

  • @dezly-macauley
    @dezly-macauley Před 4 měsíci +1

    😎🤘 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  Před 4 měsíci +1

      Love hearing this! I'm glad you're getting so much out of these videos

  • @pauliusjo
    @pauliusjo Před 4 měsíci

    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.

  • @CodingWithLewis
    @CodingWithLewis Před 4 měsíci +1

    I just need to get gud and jump into NeoVim

    • @typecraft_dev
      @typecraft_dev  Před 4 měsíci

      Haha yup! Gotta figure out how to exit first

  • @gjermundification
    @gjermundification Před 4 měsíci

    3:52 Not to mention which comment to make on commit.

  • @glenrubenlarsen8479
    @glenrubenlarsen8479 Před 3 měsíci +1

    Did you cheekily edit in a neovim neck tattoo on yourself there for a moment?

  • @Yunky_
    @Yunky_ Před 4 měsíci

    Do autopairing next.

  • @Laggedskapari
    @Laggedskapari Před 4 měsíci +1

    Noooooooo! Nerd nuked his moustache.

    • @typecraft_dev
      @typecraft_dev  Před 4 měsíci

      I’m growing it back as quick as I can I promise!

  • @zolitakacs6306
    @zolitakacs6306 Před 4 měsíci +1

    lit fuggitive is older than me

  • @nairdesu
    @nairdesu Před měsícem

    nvim neck tattoo disappeared?👀 1:00

  • @arshadjaveed7877
    @arshadjaveed7877 Před 4 měsíci

    Basically, you start with vim and turn it into vscode

  • @prop3rrr
    @prop3rrr Před 25 dny

    Try gitui;)

  • @MiguelLopez-mu1ss
    @MiguelLopez-mu1ss Před 3 měsíci

    Just open lazygit in a floatng window

  • @ShaqarudenGames
    @ShaqarudenGames Před 4 měsíci +1

    Would rather use lazygit than fugitive

  • @sumirandahal76
    @sumirandahal76 Před 4 měsíci

    Neovim 'N stands for the Nerd' Nerdvim