fix(blame): show current buffer line blame immediately

fix a problem caused by commit: 8df63f2ddc
This commit is contained in:
icefed 2024-06-28 20:50:35 +08:00 committed by Lewis Russell
parent 0595724fa9
commit 6b1a14eabc

View file

@ -223,6 +223,9 @@ function M.setup()
local opts = config.current_line_blame_opts
M.update = debounce.debounce_trailing(opts.delay, update)
-- show current buffer line blame immediately
M.update(api.nvim_get_current_buf())
local events = { 'FocusGained', 'BufEnter', 'CursorMoved', 'CursorMovedI' }
if vim.fn.exists('#WinResized') == 1 then
-- For nvim 0.9+