Closed lee-shun closed 2 months ago
@kevinhwang91
Only this error appeared for the first open?
I am experiencing this issue too. As of now, I've seen it appear when entering buffers.
What's the :lua =vim.api.nvim__redraw
output? Is the result <function 1>
? Look like the lazy issue.
experiencing the same issue since an update
I encountered a similar problem. But with the same config, the problem only occurred on the remote server when i open a file, and no error was reported in nvim on my local machine.
outputs are as follows
Error in decoration provider ufo.end:
Error executing lua: ...24/.local/share/nvim/lazy/nvim-ufo/lua/ufo/decorator.lua:132: attempt to call field 'nvim__redraw' (a nil value)
stack traceback:
[C]: in function 'error'
...24/.local/share/nvim/lazy/nvim-ufo/lua/ufo/decorator.lua:143: in function <...24/.local/share/nvim/lazy/nvim-ufo/lua/ufo/decorator.lua:140>
[C]: in function 'nvim_command'
....local/share/nvim/lazy/nui.nvim/lua/nui/popup/border.lua:624: in function '_relayout'
...4/.local/share/nvim/lazy/nui.nvim/lua/nui/popup/init.lua:390: in function 'update_layout'
...4/.local/share/nvim/lazy/nui.nvim/lua/nui/popup/init.lua:158: in function 'init'
.../.local/share/nvim/lazy/nui.nvim/lua/nui/object/init.lua:132: in function <.../.local/share/nvim/lazy/nui.nvim/lua/nui/object/init.lua:130>
....local/share/nvim/lazy/noice.nvim/lua/noice/view/nui.lua:92: in function 'create'
....local/share/nvim/lazy/noice.nvim/lua/noice/view/nui.lua:271: in function 'show'
...local/share/nvim/lazy/noice.nvim/lua/noic
Error in decoration provider ufo.end:
Error executing lua: ...24/.local/share/nvim/lazy/nvim-ufo/lua/ufo/decorator.lua:132: attempt to call field 'nvim__redraw' (a nil value)
stack traceback:
[C]: in function 'error'
...24/.local/share/nvim/lazy/nvim-ufo/lua/ufo/decorator.lua:143: in function <...24/.local/share/nvim/lazy/nvim-ufo/lua/ufo/decorator.lua:140>
Only this error appeared for the first open?
Only this error appeared for the first open?
It seems to happen when read a new buffer or toggle a fold. And :lua =vim.api.nvim__redraw
outputs nil
Only this error appeared for the first open?
It seems to happen when read a new buffer or toggle a fold. And
:lua =vim.api.nvim__redraw
outputsnil
I guess it is lazy issue. nlua_init
-> nlua_state_init
-> nlua_add_api_functions
. vim.api.nvim__redraw
never become nil
after nvim initialized except other plugins make it to be nil
.
Uninstall lazy and try again.
I tried the latest nvim v0.10.1 just now, and the error seems disappeared.
Before that, my nvim version is NVIM v0.10.0-dev-2999+g38b9c322c
.
Thank you very much for your reply!
Neovim version (nvim -v | head -n1)
NVIM v0.10.0-dev
Operating system/version
ubuntu20.04
How to reproduce the issue