You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in a large repository like void-linux/void-packages, the current_line_blame function can cause lots of lag when moving around in a file and after closing it, because of long-running git blame invocations.
a small sample (sorry for the large image):
Neovim version
NVIM v0.9.0
Operating system and version
Void Linux
Expected behavior
ideally, this wouldn't happen, but it seems unavoidable. However, if there could be some config option for either turning off current_line_blame when the path matches a glob, or a "kill git after x delay" option, that could minimise the issue.
Actual behavior
git processes accumulate and eventually take over all CPU time
Minimal config
vim.o.packpath='/tmp/nvim/site'localplugins= {
gitsigns='https://github.com/lewis6991/gitsigns.nvim',
}
forname, urlinpairs(plugins) dolocalinstall_path='/tmp/nvim/site/pack/test/start/'..nameifvim.fn.isdirectory(install_path) ==0thenvim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
endendrequire('gitsigns').setup{
debug_mode=true, -- You must add this to enable debug messagescurrent_line_blame=true,
}
Description
in a large repository like void-linux/void-packages, the current_line_blame function can cause lots of lag when moving around in a file and after closing it, because of long-running
git blame
invocations.a small sample (sorry for the large image):
![image](https://user-images.githubusercontent.com/5366828/230832090-252c3da9-1e37-43ee-b7c8-b751f7368868.png)
Neovim version
NVIM v0.9.0
Operating system and version
Void Linux
Expected behavior
ideally, this wouldn't happen, but it seems unavoidable. However, if there could be some config option for either turning off current_line_blame when the path matches a glob, or a "kill git after x delay" option, that could minimise the issue.
Actual behavior
git processes accumulate and eventually take over all CPU time
Minimal config
Steps to reproduce
git clone https://github.com/void-linux/void-packages.git
cd void-packages
nvim --clean -u minimal.lua srcpkgs/bash/template
Gitsigns debug messages
The text was updated successfully, but these errors were encountered: