fix(nvim): load nvim ufo on correct event

This commit is contained in:
Price Hiller 2023-08-17 23:50:29 -05:00
parent 4c227b0f1e
commit e9d62de9fe
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8

View File

@ -4,7 +4,7 @@ return {
dependencies = {
"kevinhwang91/promise-async",
},
event = { "BufReadPre", "BufNewFile" },
event = { "BufRead", "BufNewFile" },
opts = function()
vim.keymap.set("n", "zR", require("ufo").openAllFolds)
vim.keymap.set("n", "zM", require("ufo").closeAllFolds)