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

cant for the life of me make this work in lazyvim

Open nilshendriks opened this issue 1 year ago • 3 comments

see title, plus with telescope. get error on load. i think i have several ways of configuring it mixed up.

`Error 21:35:29 notify.error lazy.nvim Failed to run config for telescope.nvim

...m/lazy/telescope.nvim/lua/telescope/_extensions/init.lua:10: 'project' extension doesn't exist or isn't installed: module 'telescope._extensions.project' not found: no field package.preload['telescope._extensions.project'] cache_loader: module telescope._extensions.project not found cache_loader_lib: module telescope._extensions.project not found no file '/nix/store/rcn887ckva37g82v34kki2h8r0l15qyk-luajit-2.1.1713773202-env/share/lua/5.1/telescope/_extensions/project.lua' no file '/nix/store/rcn887ckva37g82v34kki2h8r0l15qyk-luajit-2.1.1713773202-env/share/lua/5.1/telescope/_extensions/project/init.lua' no file '/Users/nils/.local/share/nvim/lazy-rocks/telescope.nvim/share/lua/5.1/telescope/_extensions/project.lua' no file '/Users/nils/.local/share/nvim/lazy-rocks/telescope.nvim/share/lua/5.1/telescope/_extensions/project/init.lua' no file '/nix/store/rcn887ckva37g82v34kki2h8r0l15qyk-luajit-2.1.1713773202-env/lib/lua/5.1/telescope/_extensions/project.so' no file '/Users/nils/.local/share/nvim/lazy-rocks/telescope.nvim/lib/lua/5.1/telescope/_extensions/project.so' no file '/nix/store/rcn887ckva37g82v34kki2h8r0l15qyk-luajit-2.1.1713773202-env/lib/lua/5.1/telescope.so' no file '/Users/nils/.local/share/nvim/lazy-rocks/telescope.nvim/lib/lua/5.1/telescope.so'

stacktrace:

  • /telescope.nvim/lua/telescope/_extensions/init.lua:10 in load_extension
  • /telescope.nvim/lua/telescope/_extensions/init.lua:62 in load_extension
  • ~/.config/nvim/lua/plugins/telescope.lua:101 in config
  • /LazyVim/lua/lazyvim/plugins/extras/editor/telescope.lua:44 in open
  • /LazyVim/lua/lazyvim/util/pick.lua:75 in open
  • /LazyVim/lua/lazyvim/util/pick.lua:83
  • lua:1
  • vim/_editor.lua:0 in cmd
  • /dashboard-nvim/lua/dashboard/theme/doom.lua:24`

nilshendriks avatar Oct 04 '24 19:10 nilshendriks

can you paste you configuration? it should be something like this

{
  'ahmedkhalf/project.nvim',
  config = function()
      require('telescope').load_extension('projects')
  end
}

micaiah-effiong avatar Nov 03 '24 16:11 micaiah-effiong

If you are already using LazyVim, the (now) default Snacks.picker has a builtin Snacks.picker.projects() that can achieve the same functionality.

ananyo141 avatar Feb 09 '25 17:02 ananyo141

@nilshendriks Because of the author not being active I've made an actively maintained fork.

Does it work for you? I've made it work myself in LazyVim.

Image

DrKJeff16 avatar Sep 06 '25 02:09 DrKJeff16