Merge pull request #117 from axieax/feat/transparent-windows
Feat: transparent windows using `winblend`
This commit is contained in:
@@ -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>',
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user