Skip to content

danishprakash/nvim-blameline

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
doc
 
 
 
 
 
 
 
 
 
 

nvim-blameline

Experimental implementation of GitLens's line blame for Nvim.

What?

Blameline allows you to preview the blame details for the current line. It does so using the git blame command. It is inspired by the current line blame functionality offered by GitLens for VSCode. It uses the virtualtext API from NeoVim to display the blame metadata in the buffer.

Commands

:BlamelineEnable
    BlamelineEnable shows the blame metadata on the current lie and
    creates autocmds to alter the behaviour of the plugin.

:BlamelineDisable
    BlamelineDisable clears the blame metadata from the current line and
    also clears the autocommands setup by BlamelineEnable.

Options

let g:blameline_delay_time
    Delay (in ms) before the commit metadata is shown (default: 1000)

let g:blameline_filetype_blacklist
    Filetypes on which blameline should not act.
    Defaults to the following:
        let g:blameline_filetype_blacklist = [
        \   'help',
        \   'nerdtree',
        \   'quickfix',
        \   'tags',
        \]

Installation

Plug 'danishprakash/nvim-blameline'

Contributing

Do you want to make this better? Open an issue and/or a PR on Github. Thanks!

License

GNU GPL v3

Copyright (c) 2020 Danish Prakash

About

GitLens's current line blame for Nvim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published