Skip to content

Commit 6a2e54f

Browse files
committed
fix: menu duplication on launch (#141)
1 parent 98a398c commit 6a2e54f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lua/leetcode-ui/renderer/menu.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,9 @@ function Menu:apply_options()
146146
spell = false,
147147
signcolumn = "no",
148148
})
149-
ui_utils.win_set_winfixbuf(self.winid)
149+
vim.schedule(function()
150+
ui_utils.win_set_winfixbuf(self.winid)
151+
end)
150152
end
151153

152154
function Menu:unmount()

0 commit comments

Comments
 (0)