Closed serranomorante closed 7 months ago
Fixed. It looks like an upstream issue.
You can insert :UfoDisable
and %foldclose!
between step 7 and step 8. And then open folds will know 4 line fold isn't closed.
Fixed. It looks like an upstream issue. You can insert
:UfoDisable
and%foldclose!
between step 7 and step 8. And then open folds will know 4 line fold isn't closed.
Thank you for fixing this so quickly ❤
Neovim version (nvim -v | head -n1)
nightly
Operating system/version
arch linux
How to reproduce the issue
Sorry for the over complicated setup. I'm almost sure this is not an issue with nvim-ufo but... I still opened the issue just in case.
This issue only happens after using this a very famous custom keymap that helps me to move lines up and down. Additionally, it only happens when the line I'm moving is a
comment
, either on tsserver or lua_ls.Steps to replicate
Put
ufo.lua
andtest.js
in the same folder and go to that folder:nvim --clean +'so ufo.lua'
:e test.js
and wait for ufo folds to be ready:4
(the js comment)3zm
to close folds on the third levelYour nvim instance will freeze completely and you won't be able to do anything.
Thanks!
Expected behavior
nvim shouldn't freeze
Actual behavior
nvim freezes