kevinhwang91 / nvim-ufo

Not UFO in the sky, but an ultra fold in Neovim.
BSD 3-Clause "New" or "Revised" License
2.16k stars 37 forks source link

neovim crashes on using nvim-ufo #228

Open snr2718 opened 1 week ago

snr2718 commented 1 week ago

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

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

  1. open "nvim/username/lazy.lua"
  2. 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. ...

Expected behavior

Nvim shouldn't crash

Actual behavior

Nvim crashes

kevinhwang91 commented 1 week ago

Not a lazy user.