summaryrefslogtreecommitdiff
path: root/lua/ben/plugins/blamer.lua
blob: 243a8a7b301eb8898422df71c1f45eae85a4a28d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
return {
  "APZelos/blamer.nvim",
  -- Only load if on a compatible OS and git is installed
  cond = function()
    local goodOS = (vim.fn.has("linux") == 1) or (vim.fn.has("mac") == 1)
    local hasGit = vim.fn.executable("git") == 1
    return goodOS and hasGit
  end,
  config = function()
    vim.g.blamer_enabled = 1
    vim.g.blamer_delay = 500
    vim.g.blamer_template = "<committer>, <committer-time> • <summary>"
    vim.g.blamer_prefix = ">"
  end,
  cmd = { "BlamerToggle", "BlamerShow" },
}