rbong / vim-flog

A blazingly fast, stunningly beautiful, exceptionally powerful git branch viewer for Vim/Neovim.
750 stars 22 forks source link

docs: add lazy.nvim instructions #112

Closed coffebar closed 11 months ago

coffebar commented 11 months ago

lazy.nvim is one of the most popular plugin managers for Neovim now.

This install snippet is working good for me.

rbong commented 11 months ago

Thanks for the contribution.

JSYK, Floggit can be run outside of a Flog graph buffer, so I've added this to the lazy loaded commands. It works just like Git outside of a Flog graph buffer. Advantage is that if you use it for Fugitive keybinds, they'll work both inside of and outside of Flog.

I've added Floggit to the instructions on master - thanks again.

coffebar commented 11 months ago

Sorry, I didn't catch it, what is a difference Floggit and G from fugitive. For me, G is working from anywhere. Perhaps it is for some commands that I use differently, or do not use. Can you give a usage example please?

TamaMcGlinn commented 11 months ago

The difference is that, if you are in a flog buffer, using a Floggit command will also update the git log graph shown, whereas after doing e.g. Git commit -am "Something" you will need to press u to refresh the git log. If you have vim-autoflog installed, there should be no difference between these commands at all, since all git commands will trigger a refresh of the corresponding flog buffer.