8000 bug: `gitsigns.nvim` makes Neovim randomly freeze when scrolling/switching buffers · Issue #1029 · lewis6991/gitsigns.nvim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
bug: gitsigns.nvim makes Neovim randomly freeze when scrolling/switching buffers #1029
Closed
@pidgeon777

Description

@pidgeon777

Description

Occasionally, while scrolling or switching between buffers, Neovim unexpectedly becomes unresponsive. When this happens, I am forced to manually terminate the nvim.exe process.

This behavior started manifesting approximately two weeks ago.

Neovim version

NVIM v0.10.0

Operating system and version

Windows 11 Version 23H2

Expected behavior

No freezes should occur.

Actual behavior

Neovim freezes when randomly scrolling and switching buffers.

Minimal config

I can't reproduce it with this basic config:

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  "folke/LazyVim",
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

Instead, I'm able to reproduce it using the plugin directly in LazyVim.

But, if I disable gitsigns.nvim in LazyVim using this plugin spec:

return {
  {
    "lewis6991/gitsigns.nvim",
    enabled = false,
  },
}

then everything works fine, with no freezes.

Steps to reproduce

  1. Install basic LazyVim distribution.
  2. Open several tabs in Neovim.
  3. Rapidly alternate between them in no particular order.
  4. Swiftly scroll through the open buffers.

Gitsigns debug messages

Can't get it, given that Neovim freezes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0