mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 10:49:08 +00:00
docs: lazygit
This commit is contained in:
parent
bbda275681
commit
aa17f60c19
4 changed files with 47 additions and 10 deletions
|
@ -151,7 +151,8 @@ gui:
|
|||
dirty = false
|
||||
end
|
||||
|
||||
-- Opens lazygit
|
||||
-- Opens lazygit, properly configured to use the current colorscheme
|
||||
-- and integrate with the current neovim instance
|
||||
---@param opts? snacks.lazygit.Config
|
||||
function M.open(opts)
|
||||
---@type snacks.lazygit.Config
|
||||
|
@ -170,6 +171,7 @@ function M.open(opts)
|
|||
return Snacks.terminal(cmd, opts)
|
||||
end
|
||||
|
||||
-- Opens lazygit with the log view
|
||||
---@param opts? snacks.lazygit.Config
|
||||
function M.log(opts)
|
||||
opts = opts or {}
|
||||
|
@ -177,6 +179,7 @@ function M.log(opts)
|
|||
return M.open(opts)
|
||||
end
|
||||
|
||||
-- Opens lazygit with the log of the current file
|
||||
---@param opts? snacks.lazygit.Config
|
||||
function M.log_file(opts)
|
||||
local file = vim.trim(vim.api.nvim_buf_get_name(0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue