telescope-project.nvim icon indicating copy to clipboard operation
telescope-project.nvim copied to clipboard

File browser action not working

Open Tai-Mai opened this issue 1 year ago • 1 comments

When I try to open a project with telescope file browser, I get the following error message:

E5108: Error executing lua: ...lazy/project.nvim/lua/telescope/_extensions/projects.lua:97: attempt to call field 'file_browser' (a nil value)
stack traceback:
	...lazy/project.nvim/lua/telescope/_extensions/projects.lua:97: in function 'key_func'
	...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:269: in function <...hare/nvim/lazy/telescope.nvim/lua/telescope/mappings.lua:268>

I installed telescope project as a LazyVim extra and I installed telescope file browser with the following lazy.nvim config file that gets sourced by lazy.nvim:

return {
  "nvim-telescope/telescope-file-browser.nvim",
  dependencies = { "nvim-telescope/telescope.nvim", "nvim-lua/plenary.nvim" },
  keys = {
    {
      "<leader><space>",
      ":Telescope file_browser path=%:p:h=%:p:h<cr>",
      desc = "Telescope File Browser",
    },
  },
  config = function()
    require("telescope").load_extension("file_browser")
  end,
}

If you think the issue lies with LazyVim, please let me know so I can move issue to that repo. Thanks!

Tai-Mai avatar Mar 04 '24 06:03 Tai-Mai

I have the same issue. Did you find a solution or workaround?

nik-rev avatar Apr 23 '24 12:04 nik-rev