Closed hronro closed 2 years ago
I noticed the package is called kevinhwang91/nvim-ufo
, however in the README, the example code uses require('ufo')
.
The file in the repo (https://github.com/kevinhwang91/nvim-ufo/blob/main/lua/ufo.lua) is also named as ufo
.
May packer.nvim issue. PackerSync
before PackerUpdate
@kevinhwang91 I do use PackerSync
instead of PackerUpdate
.
Should I use require'ufo'.openAllFolds
or require'nvim-ufo'.openAllFolds
?
Sorry, It's PackerCompile
not PackerSync
.
@kevinhwang91
Same.
And AFAIN, PackerCompile
basically equals to PackerCompile
+ PackerUpdate
.
@kevinhwang91 Would you mind reopen the issue, since using PackerCompile
and PackerUpdate
didn't fix the issue.
Not ufo issue, please :h :packadd
@hronro the ufo
lua module is not yet available in Packer setup()
but it is in config()
, so you have 2 choices : either you move both of the keymaps to your config()
or add module = "ufo"
in your Packer spec.
Neovim version (nvim -v | head -n1)
NVIM v0.7.2
Operating system/version
Arch Linux
How to reproduce the issue
cat mini.lua
nvim --clean -u mini.lua
Expected behavior
Should works
Actual behavior
Got error: