Giter Club home page Giter Club logo

blamer.nvim's Introduction

blamer.nvim

A git blame plugin for (neo)vim inspired by VS Code's GitLens plugin.

blamer gif

Note: For Vim, a popup feature is required.

Installation

vim-plug

  1. Add the following line to your init.vim:
call plug#begin('~/.local/share/nvim/plugged')
...
Plug 'APZelos/blamer.nvim'
...
call plug#end()
  1. Run :PlugInstall.

Configuration

Enabled

Enables blamer on (neo)vim startup.

You can toggle blamer on/off with the :BlamerToggle command.

If the current directory is not a git repository the blamer will be automatically disabled.

Default: 0

let g:blamer_enabled = 1

Delay

The delay in milliseconds for the blame message to show. Setting this too low may cause performance issues.

Default: 1000

let g:blamer_delay = 500

Show in visual modes

Enables / disables blamer in visual modes.

Default: 1

let g:blamer_show_in_visual_modes = 0

Prefix

The prefix that will be added to the template.

Default: ' '

let g:blamer_prefix = ' > '

Template

The template for the blame message that will be shown.

Default: '<committer>, <committer-time> โ€ข <summary>'

Available options: <author>, <author-mail>, <author-time>, <committer>, <committer-mail>, <committer-time>, <summary>, <commit-short>, <commit-long>.

let g:blamer_template = '<committer> <summary>'

Date format

The format of the date fields. (<author-time>, <committer-time>)

Default: '%d/%m/%y %H:%M'

let g:blamer_date_format = '%d/%m/%y'

Relative time

Shows commit date in relative format

Default: 0

let g:blamer_relative_time = 1

Highlight

The color of the blame message.

Default: link Blamer Comment

highlight Blamer guifg=lightgrey

Author

APZelos

License

This software is released under the MIT License.

blamer.nvim's People

Contributors

apzelos avatar dimtion avatar drn avatar emintham avatar georgesofianosgr avatar keyserj avatar tamago324 avatar vitormil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.