From 18c735e9f3cb5772a5a52d04e51d74d759671a88 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 26 Feb 2024 17:14:51 -0600 Subject: [PATCH] fix(nvim): check correct var for foldlevel max in nvim-ufo --- 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 3aab1827..13808ac8 100644 --- a/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua +++ b/dots/.config/nvim/lua/plugins/configs/nvim-ufo.lua @@ -19,7 +19,7 @@ local change_buf_foldlevel_by = function(num) else foldlevel = 0 end - if vim.b.ufo_foldlevel and foldlevel > vim.b.ufo_foldlevel_max then + if vim.b.ufo_foldlevel_max and foldlevel > vim.b.ufo_foldlevel_max then return end set_buf_foldlevel(foldlevel)