Skip to content

Latest commit

 

History

History
43 lines (35 loc) · 1.11 KB

README.md

File metadata and controls

43 lines (35 loc) · 1.11 KB

git-blame-line

This plugin is inspired by vscode's Gitlens extension.

Installation

Using vim-plug

Plug 'kessejones/git-blame-line.nvim'

Using packer.nvim

use { 'kessejones/git-blame-line.nvim' }

Setup

git-blame-line needs to be initialized with the setup function.

For example:

require'git-blame-line'.setup({
    git = {
        default_message = 'Not committed yet',
        blame_format = '%an - %ar - %s' -- see https://git-scm.com/docs/pretty-formats
    },
    view = {
        left_padding_size = 5,
        enable_cursor_hold = false
    }
})

It will always be considered the default value for options not defined in the setup function

Commands

  • GitBlameLineShow - show commit information of the line
  • GitBlameLineClear - hide text displayed by GitBlameLineShow command

Contributing

We welcome any kind of contribution.
Please, look at the Issues page to see the current backlog, new suggestions, and bugs to work.

License

Distributed under the same terms as Neovim itself.