local lazypath = vim.fn.stdpath("data") .. "/lazy/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",
"--branch=stable",
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
--require("lazy").setup({import="snr2718.plugins"}, {import="snr2718.plugins.lsp"})
require("lazy").setup({ -- UFO
"kevinhwang91/nvim-ufo",
dependencies = "kevinhwang91/promise-async",
event = "VimEnter", -- needed for folds to load in time and comments closed
config = function()
require('ufo').setup()
end,
})
Dir path
nvim / init.lua
require("username/lazy.lua")
Steps to reproduce
open "nvim/username/lazy.lua"
Give enough time and it will automatically crash. If not, keep pressing "j" to go down the lines and nvim will crash and exit.
Note: Opening "nvim/init.lua" doesn't crash nvim. Maybe because there are no folds ? Not sure.
...
Neovim version (nvim -v | head -n1)
NVIM v0.10.0
Operating system/version
Arch Linux
How to reproduce the issue
Dir path
nvim/username/lazy.lua
Dir path
nvim / init.lua
Steps to reproduce
Note: Opening "nvim/init.lua" doesn't crash
nvim
. Maybe because there are no folds ? Not sure. ...Expected behavior
Nvim shouldn't crash
Actual behavior
Nvim crashes