-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Neovim version (nvim -v | head -n1)
NVIM 0.7.2
Operating system/version
Linux
How to reproduce the issue
cat mini.lua
-- Use Vim packages install the plugin, also work with some plugins manager such as packer.nvim
vim.o.packpath = '~/.local/share/nvim/site'
vim.cmd('packadd promise-async')
vim.cmd('packadd nvim-ufo')
-- Setting
vim.o.foldcolumn = '1'
vim.o.foldlevel = 99
vim.o.foldlevelstart = -1
vim.o.foldenable = true
local ufo = require('ufo')
ufo.setup({
provider_selector = function(bufnr, filetype, buftype)
return ''
end
})
vim.keymap.set('n', 'zR', ufo.openAllFolds)
vim.keymap.set('n', 'zM', ufo.closeAllFolds)
nvim --clean +'so mini.lua'
- UfoDetach
- set fdm=manual
- create fold with
zf
- type
zM
- check error
Expected behavior
the mapped zM
should work as built-in when Ufo detached.
Actual behavior
It reports error like
E5108: Error executing lua: ...uration/.config/nvim/plugged/nvim-ufo/lua/ufo/action.lua:110: attempt to index local 'fb' (a nil value)
stack traceback:
...uration/.config/nvim/plugged/nvim-ufo/lua/ufo/action.lua:110: in function <...uration/.config/nvim/plugged/nvim-ufo/lua/ufo/action.lua:106>
wookayin
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working