Modern preset + centered window: popup hidden when cursor is at bottom of buffer and bellow keymaps window #1030
Unanswered
nitaicharan
asked this question in
Q&A
Replies: 2 comments
|
Should I open a bug issue to fix it? |
0 replies
|
Both modern and classic have this issue, just with different cursor positions triggering it |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I’m having a weird issue with
which-keywhen using the modern preset and a centered layout.Config
I’m using lazy.nvim. My plugin spec for
which-keyis:{ "folke/which-key.nvim", opts = { preset = "modern", win = { padding = { 3, 3 }, -- extra window padding [top/bottom, right/left] wo = {}, -- I also tried playing with: -- no_overlap = false, -- col = 0.5, -- row = 0.5, }, layout = { align = "center", -- align columns center }, }, dependencies = { "echasnovski/mini.nvim" }, }What I see
If my cursor is somewhere in the middle of the buffer and I press
<leader>, I get the expected modern, centered which-key popup with all my mappings.Bottom of the buffer:
If I scroll all the way down so the cursor is at the bottom part of the window and in the middle of the screen (below the which-key window) and then press
<leader>, the which-key window opens, but it’s basically empty:ESC close x back ^D/^U scrollIf I move gradually the cursor back up a few lines and hit
<leader>again, the popup shows more mappings as expected and until my cursor is in the upper part of the which-key window.So the trigger works, the window opens, but the contents disappear only when the cursor is near the bottom of the buffer and under the wich-key window.
All reactions