*snacks-git*                                     snacks git docs

==============================================================================
Table of Contents                          *snacks.nvim-git-table-of-contents*

1. Styles                                             |snacks.nvim-git-styles|
  - blame_line                             |snacks.nvim-git-styles-blame_line|
2. Module                                             |snacks.nvim-git-module|
  - Snacks.git.blame_line()   |snacks.nvim-git-module-snacks.git.blame_line()|
  - Snacks.git.get_root()       |snacks.nvim-git-module-snacks.git.get_root()|

==============================================================================
1. Styles                                             *snacks.nvim-git-styles*

Check the styles
<https://github.com/folke/snacks.nvim/blob/main/docs/styles.md> docs for more
information on how to customize these styles


BLAME_LINE                                 *snacks.nvim-git-styles-blame_line*

>lua
    {
      width = 0.6,
      height = 0.6,
      border = true,
      title = " Git Blame ",
      title_pos = "center",
      ft = "git",
    }
<


==============================================================================
2. Module                                             *snacks.nvim-git-module*


`Snacks.git.blame_line()`                            *Snacks.git.blame_line()*

Show git log for the current line.

>lua
    ---@param opts? snacks.terminal.Opts | {count?: number}
    Snacks.git.blame_line(opts)
<


`Snacks.git.get_root()`                                *Snacks.git.get_root()*

Gets the git root for a buffer or path. Defaults to the current buffer.

>lua
    ---@param path? number|string buffer or path
    ---@return string?
    Snacks.git.get_root(path)
<

Generated by panvimdoc <https://github.com/kdheepak/panvimdoc>

vim:tw=78:ts=8:noet:ft=help:norl:
