rmagatti / session-lens

A session-switcher extension for rmagatti/auto-session using Telescope.nvim
MIT License
227 stars 14 forks source link

On opening session-lens for the first time in a session, no background in telescope window is present #26

Open feekApp opened 2 years ago

feekApp commented 2 years ago

Hi,

when opening session-lens for the first time in a terminal (iTerm) session, the background of the telescope popup is transparent. So the text under the pop-up window is visible: wrong-background

All other calls of session-lens does have a proper background (not transparent) correct-background

This behaviour only is present for session-lens. All other telescope pop-ups are OK on the first time such a pop-up is requested on a new terminal session.

Any clue hou to fix this?

My Setup:

local opts = {
  log_level = 'info',
  auto_session_enable_last_session = false,
  auto_session_root_dir = vim.fn.stdpath('config').."/sessions/",
  auto_session_create_enabled = false,
  auto_session_enabled = true,
  auto_save_enabled = true,
  auto_restore_enabled = true,
  auto_session_suppress_dirs = {'~/', '~/Projects'}
}

require('auto-session').setup(opts)

require('session-lens').setup ({
  prompt_title = 'FeekApp',
  path_display = {'shorten'},
  previewer = false,
})

require("telescope").load_extension('session-lens')
xbladesub commented 2 years ago

Same here. Little bit annoying small bug

xbladesub commented 2 years ago

Btw, I started to use neovide - don't have this anymore

rmagatti commented 2 years ago

Hey 👋 so this is super weird. In main.lua I do change a few theme related things for telescope but I can't see why this would mean an initially transparent background. Also I can't seem to reproduce this myself, likely because I'm using Kitty.

LostNeophyte commented 2 years ago

@feekApp Does this fix the issue? require('session-lens').setup ({ theme_conf = { winblend = nil } })

eugene-gavriloff commented 2 years ago

@feekApp Does this fix the issue? require('session-lens').setup ({ theme_conf = { winblend = nil } })

yes, it's worked

feekApp commented 2 years ago

Sorry, forgot to test. Because I'am using now more and more tmux for managing my projects.

But I can confirm that the suggestion works!