fix(config)!: fallback to vim.o.winblend (#2861)

This commit is contained in:
Simon Hauser
2024-01-18 11:45:02 +01:00
committed by GitHub
parent b4befa1c2f
commit 9cf58f438f
4 changed files with 18 additions and 9 deletions

View File

@@ -1241,6 +1241,9 @@ 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)
if type(opts.winblend) == "function" then
opts.winblend = opts.winblend()
end
opts.column_padding = vim.F.if_nil(opts.column_padding, " ")
-- Assigning into 'opts.column_indent' would override a number with a string and