Skip to content

Commit 991b2ed

Browse files
fix:foldlevel breaks help display (nvim-neo-tree#1476)
1 parent 6e20108 commit 991b2ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/neo-tree/sources/common/help.lua

+5
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ M.show = function(state, title, prefix_key)
123123
local popup = Popup(options)
124124
popup:mount()
125125

126+
-- Disable folding to avoid display issues from foldlevel
127+
vim.api.nvim_set_option_value("foldenable", false, {
128+
win = popup.winid,
129+
})
130+
126131
popup:map("n", "<esc>", function()
127132
popup:unmount()
128133
end, { noremap = true })

0 commit comments

Comments
 (0)