fdschmidt93 / telescope-egrepify.nvim

Variable user customization for telescope.live_grep to set rg flags on-the-fly
MIT License
123 stars 13 forks source link

Telescope egrepify don't highlight on preview #38

Closed otavioschwanck closed 8 months ago

otavioschwanck commented 8 months ago

Description

egrepify don't highlight on the item on previewer windows.

Neovim version

latest stable. (0.9.4)

Operating system and version

mac

Steps to reproduce

Run egrepify with preview

Expected behavior

Highlight selection like Telescope live_grep

image

Actual behavior

Don't highlight on preview.

image

Minimal config

vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = "/tmp/nvim/site/pack"
local lazypath = package_root .. "/lazy/lazy.nvim"
local pluginpath = package_root .. "/plugins/"
if not vim.loop.fs_stat(lazypath) then
  print "Installing 'folke/lazy.nvim'..."
  vim.fn.system { "git", "clone", "https://github.com/folke/lazy.nvim.git", lazypath }
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
  {
    "fdschmidt93/telescope-egrepify.nvim",
    keys = {
      { "<space>rg", "<CMD>Telescope egrepify<CR>", mode = { "n", "i", "v" } },
    },
  },
  {
    "nvim-telescope/telescope.nvim",
    dependencies = "nvim-lua/plenary.nvim",
    config = function()
      require("telescope").setup {}
      require("telescope").load_extension "egrepify"
    end,
  },
}, { root = pluginpath })
fdschmidt93 commented 8 months ago

Screenshot is obviously not from minimal repro. This is more than the third time I am telling you this. I will ignore future bug reports of yours without comments on your next offense.

Back to the issue at hand, I cannot reproduce with appimage from: https://github.com/neovim/neovim/releases/tag/v0.9.5 and

vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = "/tmp/nvim/site/pack"
local lazypath = package_root .. "/lazy/lazy.nvim"
local pluginpath = package_root .. "/plugins/"
if not vim.loop.fs_stat(lazypath) then
  print "Installing 'folke/lazy.nvim'..."
  vim.fn.system { "git", "clone", "https://github.com/folke/lazy.nvim.git", lazypath }
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
  {
    "fdschmidt93/telescope-egrepify.nvim",
    keys = {
      { "<space>rg", "<CMD>Telescope egrepify<CR>", mode = { "n", "i", "v" } },
    },
  },
  {
    "nvim-telescope/telescope.nvim",
    dependencies = "nvim-lua/plenary.nvim",
    config = function()
      require("telescope").setup {}
      require("telescope").load_extension "egrepify"
    end,
  },
}, { root = pluginpath })

Closing.