lambdalisue / vim-gina

👣 Asynchronously control git repositories in Neovim/Vim 8
http://www.vim.org/scripts/script.php?script_id=5531
MIT License
687 stars 27 forks source link

Can I use it with delta instead of diff-highlight? #300

Open aca opened 2 years ago

aca commented 2 years ago

Thank you for the great project. I don't see why this is not popular enough than other project. When I Gina:log and show commit. It shows diff with default git diff. Maybe can I use it with tools like delta? delta supports git diff --color | delta --diff-highlight which emulate same view as diff-highlight (but better).

lambdalisue commented 2 years ago

Thanks.

Well, unfortunately, supporting delta is a bit tough work while gina depends on the feature of git itself.

aca commented 2 years ago

That's sad, for now here's mapping to use delta

call gina#custom#mapping#nmap(
        \ 'log', 'd',
        \ ':execute printf(":new term://git diff %s \| resize +10", gina#action#candidates()[0].rev)<cr>',
        \ {'noremap': 1, 'silent': 1},
        \)