tanvirtin / vgit.nvim

Visual git plugin for Neovim
MIT License
583 stars 11 forks source link

Phantom inline git-blame messages at the bottom of buffers #333

Closed mrded closed 1 year ago

mrded commented 1 year ago

Description

I've just updated from v0.1.2 to v0.2.1 with a very minimal config, and noticed phantom inline git-blame messages at the bottom of buffers.

I believe I have it all disabled. This looks like a bug to me, please advise.

    require('vgit').setup({
      settings = {
        live_blame = { enabled = false },
        live_gutter = { enabled = false },
      }
    })

Opening a directory with nvimtree buffer: image

Opening a file: image

I only see the message when a buffer is in focus.

tanvirtin commented 1 year ago

Hey, this is actually a feature lol. It is showing you the author that committed the most lines in this file, more like a code owner of that file. You can disable it using the following:

require('vgit').setup({
    settings = {
        authorship_code_lens = { enabled = false },
    }
})
mrded commented 1 year ago

Thanks for the reply. I don't think it should be enabled by default, as it's very confusing.

Also it triggers on random buffers, not only on files.

If you look at the screenshot I've provided, it's showing on nvimtree buffer.