Merge pull request #117 from axieax/feat/transparent-windows

Feat: transparent windows using `winblend`
This commit is contained in:
sim
2022-04-30 19:25:38 -07:00
committed by GitHub
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()