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

Telescope results off the buffer #3160

Closed
jcribeirooo opened this issue Jun 9, 2024 · 2 comments
Closed

Telescope results off the buffer #3160

jcribeirooo opened this issue Jun 9, 2024 · 2 comments
Labels
bug Something isn't working not reproducible

Comments

@jcribeirooo
Copy link

Description

After updating Telescope, the results of find files comes off the buffer. Then, if I navigate up/down, the results will show.

Searching:
image

After pressing arrow up:
image

Neovim version

NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1716656478

Operating system and version

6.9.3-arch1-1

Telescope version / branch / rev

"telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" }

checkhealth telescope

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

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

Checking external dependencies ~
- OK rg: found ripgrep 14.1.0
- OK fd: found fd 10.1.0

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

Steps to reproduce

Find files using telescope. Some files will be off the buffer.
Then press arrow up, and the files go back within the buffer.

Expected behavior

All files to be in the Results buffer.

Actual behavior

Searched files off the Results buffer.

Minimal config

vim.cmd [[set runtimepath=$VIMRUNTIME]]
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
  require('packer').startup {
    {
      'wbthomason/packer.nvim',
      {
        'nvim-telescope/telescope.nvim',
        requires = {
          'nvim-lua/plenary.nvim',
          { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' },
        },
      },
      -- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. '/plugin/packer_compiled.lua',
      display = { non_interactive = true },
    },
  }
end
_G.load_config = function()
  require('telescope').setup()
  require('telescope').load_extension('fzf')
  -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
end
if vim.fn.isdirectory(install_path) == 0 then
  print("Installing Telescope and dependencies.")
  vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
end
load_plugins()
require('packer').sync()
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
@jcribeirooo jcribeirooo added the bug Something isn't working label Jun 9, 2024
@jamestrew
Copy link
Contributor

I'm pretty sure you just need to update telescope.

"telescope.nvim": { "branch": "master", "commit": "776b509f80dd49d8205b9b0d94485568236d1192" }

I think you're actually pinned to the commit, which is quite old. There was a fix for this issue that was related to a neovim 0.10 change.

Can you verify you're experiencing the issue with the minimal config?

@jcribeirooo
Copy link
Author

You are right. I missed that my config was setting the tag on my Lazy vim config when defining the telescope. Thanks!
{ "nvim-telescope/telescope.nvim", tag = "0.1.2", /* I removed it from here and got the fix as you said. */ dependencies = { "nvim-lua/plenary.nvim" }, config = config("plugin.plenary"), }

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

No branches or pull requests

2 participants