kevinhwang91 / nvim-ufo

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

fix(fold): handle empty providers #31

Closed stevanmilic closed 2 years ago

stevanmilic commented 2 years ago

Fix for:

Error executing vim.schedule lua callback: UnhandledPromiseRejection with the reason:
.../site/pack/packer/start/nvim-ufo/lua/ufo/fold/buffer.lua:219: attempt to index field 'providers' (a nil value)

Following the commit: f3662fe9a3b62465ba8e002c243424bd72d8c828

kevinhwang91 commented 2 years ago

good job!