nvim-telescope / telescope-ui-select.nvim

MIT License
774 stars 18 forks source link

Package broken #51

Closed zDyanTB closed 1 month ago

zDyanTB commented 1 month ago

I was facing an error where no plugins were installed by lazy, the problem was this package. Error

07:35:52 [WARN ] lvim: "Invalid configuration: ...zy/opt/telescope.nvim/lua/telescope/_extensions/init.lua:10: 'ui-select' extension doesn't exist or isn't installed: module 'telescope._extensions.ui-select' not f
ound:\n\tno field package.preload['telescope._extensions.ui-select']\n\tno file '/nix/store/ivb32bi4wk08xi6zjvh7wp3iyj7qq0l3-luajit-2.1.1693350652-env/share/lua/5.1/telescope/_extensions/ui-select.lua'\n\tno file 
'/nix/store/ivb32bi4wk08xi6zjvh7wp3iyj7qq0l3-luajit-2.1.1693350652-env/share/lua/5.1/telescope/_extensions/ui-select/init.lua'\n\tno file '/nix/store/ivb32bi4wk08xi6zjvh7wp3iyj7qq0l3-luajit-2.1.1693350652-env/lib/
lua/5.1/telescope/_extensions/ui-select.so'\n\tno file '/nix/store/ivb32bi4wk08xi6zjvh7wp3iyj7qq0l3-luajit-2.1.1693350652-env/lib/lua/5.1/telescope.so'" file="[C]", line=-1

Config

  {
    'nvim-telescope/telescope-ui-select.nvim',
    config = true,
    require("telescope").load_extension("ui-select")
  }

OS: NixOs 24.05 Nvim 0.9.5

Using Lunarvim

Conni2461 commented 1 month ago

config looks wrong, seems like you are evaluating this require("telescope").load_extension("ui-select") immediately.

This looks more correct, though if telescope-ui-select is loaded prior to telescope this will also error, so maybe just have one telescope config

  {
    'nvim-telescope/telescope-ui-select.nvim',
    config = function()
      require("telescope").load_extension("ui-select")
    end,
  }