Closed
Description
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
- Install basic
LazyVim
distribution. - Open several tabs in Neovim.
- Rapidly alternate between them in no particular order.
- Swiftly scroll through the open buffers.
Gitsigns debug messages
Can't get it, given that Neovim freezes.