diff options
Diffstat (limited to '.config/nvim/plugin/50-git.lua')
| -rw-r--r-- | .config/nvim/plugin/50-git.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.config/nvim/plugin/50-git.lua b/.config/nvim/plugin/50-git.lua index 8a8a634..609ab93 100644 --- a/.config/nvim/plugin/50-git.lua +++ b/.config/nvim/plugin/50-git.lua @@ -15,7 +15,12 @@ local function git_blame(file, line) local sys = vim.system({ "bash", "-c", - string.format('grep -E "^author |^summary " <(git blame -L %d,%d --porcelain -- %s)', line, line, file), + string.format( + 'grep -E --only-matching "^author .*$|^summary .*$|^[[:xdigit:]]{40}" <(git blame -L %d,%d --porcelain -- %s)', + line, + line, + file + ), }):wait() if sys.stdout then vim.notify(sys.stdout, vim.log.levels.INFO) |
