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

File browser action not working #147

Open
Tai-Mai opened this issue Mar 4, 2024 · 1 comment
Open

File browser action not working #147

Tai-Mai opened this issue Mar 4, 2024 · 1 comment

Comments

@Tai-Mai
Copy link

Tai-Mai commented Mar 4, 2024

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!

@NikitaRevenco
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants