Implement 'winhl' user option

This commit is contained in:
edluffy 2021-03-23 23:31:18 +00:00
commit ba3471c804
2 changed files with 9 additions and 0 deletions

View file

@ -26,8 +26,11 @@ function M.show_specs()
row = cursor_row,
style = 'minimal'
})
vim.api.nvim_win_set_option(win_id, 'winhl', 'Normal:'.. opts.popup.winhl)
vim.api.nvim_win_set_option(win_id, "winblend", opts.popup.blend)
local cnt = 0
local config = vim.api.nvim_win_get_config(win_id)
local timer = vim.loop.new_timer()
@ -123,6 +126,7 @@ local DEFAULT_OPTS = {
inc_ms = 5,
blend = 10,
width = 20,
winhl = "PMenu",
fader = M.exp_fader,
resizer = M.shrink_resizer
}