Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not be able to preview "no name" in talescope tabs #3221

Open
yimingwangdell opened this issue Jul 24, 2024 · 2 comments
Open

not be able to preview "no name" in talescope tabs #3221

yimingwangdell opened this issue Jul 24, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@yimingwangdell
Copy link

Description

not be able to preview "no name" in talescope tabs

Neovim version

NVIM v0.11.0-dev-358+g6a886a251

Operating system and version

linux

Telescope version / branch / rev

latest

checkhealth telescope

==============================================================================
telescope: health#telescope#check

Checking for required plugins ~
- OK plenary installed.
- OK nvim-treesitter installed.

Checking external dependencies ~
- OK rg: found ripgrep 13.0.0
- WARNING fd: not found. Install [sharkdp/fd](https://github.com/sharkdp/fd) for extended capabilities

===== Installed extensions ===== ~

Telescope Extension: `aerial` ~
- No healthcheck provided

Telescope Extension: `telescope-tabs` ~
- No healthcheck provided

Steps to reproduce

  1. open a new tab
  2. type something
  3. use :Telescope telescope-tabs list_tabs

Expected behavior

see preview

Actual behavior

no preview on no named tabs

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",
})
@yimingwangdell yimingwangdell added the bug Something isn't working label Jul 24, 2024
@yimingwangdell
Copy link
Author

fire ticket to LukasPietzschmann/telescope-tabs, so close it.

@jamestrew
Copy link
Contributor

This PR might be relevant. telescope itself currently doesn't handle previews of buffer's real contents too well currently.

If telescope-tabs is using the buffer previewer from telescope core, it well not be able to preview unwritten buffers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants