NEOVIM GIT PRODUCTIVITY: 2024
Vložit
- čas přidán 27. 06. 2024
- Walkthrough of all the git plugins you would need to effectively navigate git repository
Neovim config - github.com/ashish10alex/pnvim
1. Gitsigns
* navigate through hunks
* preview git hunks
* undo hunk
* stage & un-stage hunks
2. Neogit - stage & unstage files
3. Fugitive
* git browse - go to remote url + highlight lines
* git commit & push
* Git blame - the last author who changed the line
4. Telescope git commands
5. Git conflict management
Timecodes
0:00 Intro
0:11 Git hunks
3:55 Neogit
4:25 Fugitive & gitlinks
7:25 Telescope git commands
8:00 Git conflicts
Why would you use Fugitive to commit and push? In the Neogit menu, you can press `c` to edit the COMMIT_EDITMSG and press `P` to push (note that `P` is uppercase, and lowercase `p` is for pulling).
Yup, i didn’t know at the i made the video. now I have made the switch, thanks thought
Hello,
At around 2:21 in your video, you have a popup that shows a diff with red and green highlights. I have the same popup in my Neovim setup, but it doesn't show the red and green diff. How did you configure that to display the diff in such a way?
Thank you!
This I believe are coming from 'lewis6991/gitsigns.nvim' plugin.
You might want to checkout the config I have used in this repo - github.com/ashish10alex/pnvim/blob/b8799814b556ea253e562dfdb4323047df43d47f/lua/plugins/fugitive.lua#L18-L18
@@ashishalex10 I did but nothing seemed to work for me, I guess I will have to research more. Thank you very much! Take care
Last try, could it be because I have delta cli installed in my path
delta cli -> github.com/dandavison/delta