PedramNavid / dbtpal

Neovim plugin for dbt
93 stars 8 forks source link

Installation without Telescope erros #30

Open jaimcamp opened 3 weeks ago

jaimcamp commented 3 weeks ago

Hi,

I tried to install DBTPal without any Telescope dependency (I use fzf-lua) but the initialization failed with the following trace:


Failed to run `config` for dbtpal

...p/.local/share/nvim/lazy/dbtpal/lua/dbtpal/telescope.lua:1: module 'telescope.pickers' not found:
^Ino field package.preload['telescope.pickers']
cache_loader: module telescope.pickers not found
cache_loader_lib: module telescope.pickers not found
^Ino file './telescope/pickers.lua'
^Ino file '/usr/share/luajit-2.1/telescope/pickers.lua'
^Ino file '/usr/local/share/lua/5.1/telescope/pickers.lua'
^Ino file '/usr/local/share/lua/5.1/telescope/pickers/init.lua'
^Ino file '/usr/share/lua/5.1/telescope/pickers.lua'
^Ino file '/usr/share/lua/5.1/telescope/pickers/init.lua'
^Ino file './telescope/pickers.so'
^Ino file '/usr/local/lib/lua/5.1/telescope/pickers.so'
^Ino file '/usr/lib64/lua/5.1/telescope/pickers.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'
^Ino file './telescope.so'
^Ino file '/usr/local/lib/lua/5.1/telescope.so'
^Ino file '/usr/lib64/lua/5.1/telescope.so'
^Ino file '/usr/local/lib/lua/5.1/loadall.so'

# stacktrace:
  - /dbtpal/lua/dbtpal/telescope.lua:1
  - /dbtpal/lua/dbtpal/init.lua:51
  - ~/.config/nvim/lua/plugins/dbtpal.lua:18 _in_ **config**
  - /usr/share/nvim/runtime/filetype.lua:36
  - /usr/share/nvim/runtime/filetype.lua:35

Which points to this telescope dependency https://github.com/PedramNavid/dbtpal/blob/0950ceb88ae898a23f78a4d12fbeeee4cb5dad5e/lua/dbtpal/init.lua#L51

Is it possible to make telescope an optional dependency there as well?

Thanks!