fix(nvim): load nvim ufo on correct event
This commit is contained in:
parent
4c227b0f1e
commit
e9d62de9fe
@ -4,7 +4,7 @@ return {
|
|||||||
dependencies = {
|
dependencies = {
|
||||||
"kevinhwang91/promise-async",
|
"kevinhwang91/promise-async",
|
||||||
},
|
},
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufRead", "BufNewFile" },
|
||||||
opts = function()
|
opts = function()
|
||||||
vim.keymap.set("n", "zR", require("ufo").openAllFolds)
|
vim.keymap.set("n", "zR", require("ufo").openAllFolds)
|
||||||
vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
|
vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
|
||||||
|
Loading…
Reference in New Issue
Block a user