kevinhwang91 / nvim-ufo

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

Error message appearing when opening/closing folds #10

Closed romgrk closed 2 years ago

romgrk commented 2 years ago

Neovim version (nvim -v | head -n1)

0.8.0-dev

Operating system/version

archlinux

How to reproduce the issue

Not sure, need to open/close folds a few times.

Expected behavior

No error message.

Actual behavior

image

kevinhwang91 commented 2 years ago

Lsp provider? What's server and client

kevinhwang91 commented 2 years ago

https://github.com/kevinhwang91/nvim-ufo/blob/cf7dc7fa196dbb835a1b8bbc5d7c5f6d786f41ee/lua/ufo/fold/buffer.lua#L142 looks like your config issue?

romgrk commented 2 years ago

looks like your config issue?

Got it, fixed. The readme could show an actual copy/pastable example for the config, would be more convenient for users.