diff --git a/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua b/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua index 0e06e924..312bc1a6 100644 --- a/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua +++ b/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua @@ -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)