From e9d62de9fe9f48c88c052705b39f6b00406d3631 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Thu, 17 Aug 2023 23:50:29 -0500 Subject: [PATCH] fix(nvim): load nvim ufo on correct event --- dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)