feat: winblend

This commit is contained in:
Andrew
2022-03-13 01:32:43 +11:00
parent 1361738c47
commit f7946bd254
4 changed files with 15 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ M.defaults = {
show_relative_numbers = false,
show_symbol_details = true,
preview_bg_highlight = 'Pmenu',
winblend = 0,
keymaps = { -- These keymaps can be a string or a table for multiple keys
close = { '<Esc>', 'q' },
goto_location = '<Cr>',

View File

@@ -151,6 +151,9 @@ local function set_bg_hl()
local winhi = 'Normal:' .. config.options.preview_bg_highlight
vim.api.nvim_win_set_option(state.preview_win, 'winhighlight', winhi)
vim.api.nvim_win_set_option(state.hover_win, 'winhighlight', winhi)
local winblend = config.options.winblend
vim.api.nvim_win_set_option(state.preview_win, 'winblend', winblend)
vim.api.nvim_win_set_option(state.hover_win, 'winblend', winblend)
end
local function show_preview()