mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2024-09-16 14:34:09 +02:00
fix: add cli binding for show
This commit is contained in:
parent
e9c4187c37
commit
d9f997dba7
2 changed files with 5 additions and 0 deletions
|
@ -1240,6 +1240,10 @@ M.show = function(revision, callback)
|
|||
diffthis.show(bufnr, revision, callback)
|
||||
end
|
||||
|
||||
C.show = function(args, _)
|
||||
M.show(args[1])
|
||||
end
|
||||
|
||||
CP.show = complete_heads
|
||||
|
||||
--- @param buf_or_filename string|integer
|
||||
|
|
|
@ -181,6 +181,7 @@ function M.create(argc_or_func, func)
|
|||
|
||||
return function(...)
|
||||
local callback = argc and select(argc + 1, ...) or nil
|
||||
assert(not callback or type(callback) == 'function')
|
||||
return run(func, callback, unpack({ ... }, 1, argc))
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue