feat(ui): added multiple options for diff command

This commit is contained in:
Folke Lemaitre 2022-12-24 11:27:29 +01:00
parent 8ad05feef1
commit 7d02da2ff0
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 83 additions and 5 deletions

View file

@ -50,6 +50,14 @@ M.defaults = {
task = "",
},
throttle = 20, -- how frequently should the ui process render events
diff = {
-- diff command <d> can be one of:
-- * browser: opens the github compare view. Note that this is always mapped to <K> as well,
-- so you can have a different command for diff <d>
-- * git: will run git diff and open a buffer with filetype git
-- * terminal_git: will open a pseudo terminal with git diff
-- * diffview.nvim: will open Diffview to show the diff
cmd = "git",
},
checker = {
-- automatically check for plugin updates