nvim-telescope / telescope.nvim

Find, Filter, Preview, Pick. All lua, all the time.
MIT License
16.02k stars 838 forks source link

Can't see cursor when using winblend in telescope #1710

Open dlvhdr opened 2 years ago

dlvhdr commented 2 years ago

Description

When I use some low value for winblend, I can BARELY see my cursor if it's on a space (meaning, not under a character). I'm using alacritty with the folke/tokyo-night theme.

Neovim version

NVIM v0.6.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by brew@Monterey

Operating system and version

macOS 12.0.1

checkhealth telescope

telescope: require("telescope.health").check()
========================================================================
## Checking for required plugins
  - OK: plenary installed.
  - OK: nvim-treesitter installed.

## Checking external dependencies
  - OK: rg: found ripgrep 13.0.0
  - OK: fd: found fd 8.3.1

## ===== Installed extensions =====

## Telescope Extension: `fzf`
  - INFO: No healthcheck provided

## Telescope Extension: `projects`
  - INFO: No healthcheck provided

Steps to reproduce

  1. Set telescope config accordingly
  2. Maybe use Alacritty (not sure it's necessary)

Expected behavior

Should be able to easily see cursor when not on a character.

Actual behavior

Some images: image image image image

Minimal config

require("telescope").setup({
  defaults = {
    winblend = 5,
    path_display = { truncate = 5 },
    get_status_text = function()
      return ""
    end,
    preview = {
      filesize_limit = 3,
      timeout = 250,
    },
    selection_strategy = "reset",
    sorting_strategy = "ascending",
    scroll_strategy = "limit",
    color_devicons = true,
    layout_strategy = "horizontal",
    layout_config = {
      width = 0.95,
      height = 0.85,
      prompt_position = "top",
      horizontal = {
        preview_width = function(_, cols, _)
          return math.floor(cols * 0.4)
        end,
      },

      vertical = {
        width = 0.9,
        height = 0.95,
        preview_height = 0.35,
      },

      flex = {
        horizontal = {
          preview_width = 0.9,
        },
      },
    },
  },
  extensions = {
    fzf = {
      fuzzy = true,
      override_generic_sorter = true,
      override_file_sorter = true,
      case_mode = "smart_case",
    },
  },
})
Conni2461 commented 2 years ago

We could add a TelescopeCursor hl group