fix(which_key): increase zindex for popup window (#3046)

(cherry picked from commit a3284957d3)
This commit is contained in:
Mohamad Sulton Hasanuddin
2024-05-20 11:28:12 +02:00
committed by Simon Hauser
parent 7ea9ae5118
commit 93bd73e646
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -1102,6 +1102,7 @@ actions.which_key = function(prompt_bufnr, opts)
opts.normal_hl = vim.F.if_nil(opts.normal_hl, "TelescopePrompt")
opts.border_hl = vim.F.if_nil(opts.border_hl, "TelescopePromptBorder")
opts.winblend = vim.F.if_nil(opts.winblend, conf.winblend)
opts.zindex = vim.F.if_nil(opts.zindex, 100)
opts.column_padding = vim.F.if_nil(opts.column_padding, " ")
-- Assigning into 'opts.column_indent' would override a number with a string and
@@ -1220,6 +1221,7 @@ actions.which_key = function(prompt_bufnr, opts)
borderchars = { prompt_pos and "" or " ", "", not prompt_pos and "" or " ", "", "", "", "", "" },
noautocmd = true,
title = { { text = title_text, pos = prompt_pos and "N" or "S" } },
zindex = opts.zindex,
}
local km_win_id, km_opts = popup.create("", popup_opts)
local km_buf = a.nvim_win_get_buf(km_win_id)