Skip to content

File browser action not working #147

@Tai-Mai

Description

@Tai-Mai

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions