Skip to content

Cannot disable live_grep line content in the results. #3537

@CoinCheung

Description

@CoinCheung

Description

Here is the results of live_grep, I do not want it to show the line content in the "Results" part of the packer. Is there an option for that?

Image

Neovim version

NVIM v0.11.4
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info

Operating system and version

ubuntu 22.04

Telescope version / branch / rev

latest today at 20250923

checkhealth telescope

==============================================================================
telescope:                                                                  ✅

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 =====

Steps to reproduce

open a project and open live_grep.

Expected behavior

There is expected to be an option for this.

Actual behavior

Cannot find a config option for this.

Minimal config

local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs { "config", "data", "state", "cache" } do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.uv.fs_stat(lazypath) then
  vim.fn.system {
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  }
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  {
    "nvim-telescope/telescope.nvim",
    dependencies = {
      "nvim-lua/plenary.nvim",
    },
    config = function()
      -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
      require("telescope").setup {}
    end,
  },
}

require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions