mirror of
https://github.com/folke/lazy.nvim.git
synced 2025-04-18 20:36:45 +00:00
fix(diff): use git show when only displaying one commit (#155)
This commit is contained in:
parent
ed8259b7c1
commit
037f242430
2 changed files with 7 additions and 5 deletions
|
@ -38,14 +38,12 @@ function M.show(mode)
|
|||
M.view:update()
|
||||
end
|
||||
|
||||
---@param opts? {mode?:string}
|
||||
function M.create(opts)
|
||||
function M.create()
|
||||
local self = setmetatable({}, { __index = setmetatable(M, { __index = Float }) })
|
||||
---@cast self LazyView
|
||||
Float.init(self)
|
||||
|
||||
require("lazy.view.colors").setup()
|
||||
opts = opts or {}
|
||||
|
||||
self.state = vim.deepcopy(default_state)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue