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 buffers is failing #3171

Closed
andrzejsliwa opened this issue Jun 15, 2024 · 3 comments · Fixed by #3172
Closed

Telescope buffers is failing #3171

andrzejsliwa opened this issue Jun 15, 2024 · 3 comments · Fixed by #3172
Labels
bug Something isn't working

Comments

@andrzejsliwa
Copy link

andrzejsliwa commented Jun 15, 2024

Description

When I'm trying to open Telescope for buffers I'm receiving error:

obraz_2024-06-15_183641709

Neovim version

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

Operating system and version

Windows 11 / WSL2

Telescope version / branch / rev

latest

checkhealth telescope

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

Checking for required plugins ~
- OK plenary installed.
- WARNING nvim-treesitter not found. (Required for `:Telescope treesitter`.)

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

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

Steps to reproduce

:Telescope buffers

Expected behavior

list buffers

Actual behavior

error (please look on screenshot), because of error I'm not able to get access to vim anymore)

Here is picture reproduce from minimal.lua
obraz_2024-06-15_184625600

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",
})
@andrzejsliwa andrzejsliwa added the bug Something isn't working label Jun 15, 2024
@masar3141
Copy link

Spent a lot of time on this problem too. On Macos, Nvim 0.11

@jamestrew
Copy link
Contributor

ahh sorry guys, silly error on my part 🤦
Should be fixed now.

@masar3141
Copy link

Working here, thanks!

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

Successfully merging a pull request may close this issue.

3 participants