Skip to content

fix:foldlevel breaks help display (#1476) #1477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lua/neo-tree/sources/common/help.lua
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ M.show = function(state, title, prefix_key)
col = tree_width - 1
end

---@type nui_popup_options
local options = {
position = {
row = 2,
Expand All @@ -88,6 +89,9 @@ M.show = function(state, title, prefix_key)
focusable = true,
zindex = 50,
relative = "editor",
win_options = {
foldenable = false, -- Prevent folds from hiding lines
},
}

local popup_max_height = function()
Expand Down Expand Up @@ -118,8 +122,8 @@ M.show = function(state, title, prefix_key)
options.size.height = max_height
end

local title = title or "Neotree Help"
local options = popups.popup_options(title, width, options)
title = title or "Neotree Help"
options = popups.popup_options(title, width, options)
local popup = Popup(options)
popup:mount()

Expand Down