๐ฟ git
October 22, 2025 ยท View on GitHub
๐จ Styles
Check the styles docs for more information on how to customize these styles
blame_line
{
width = 0.6,
height = 0.6,
border = true,
title = " Git Blame ",
title_pos = "center",
ft = "git",
}
๐ฆ Module
Snacks.git.blame_line()
Show git log for the current line.
---@param opts? snacks.terminal.Opts | {count?: number}
Snacks.git.blame_line(opts)
Snacks.git.get_root()
Gets the git root for a buffer or path. Defaults to the current buffer.
---@param path? number|string buffer or path
---@return string?
Snacks.git.get_root(path)