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

Installation #8

Open
Vliro opened this issue Aug 18, 2021 · 4 comments
Open

Installation #8

Vliro opened this issue Aug 18, 2021 · 4 comments

Comments

@Vliro
Copy link

Vliro commented Aug 18, 2021

I tried to install this plugin by adding "nvim-telescope/telescope-dap" to packer plugins and adding
require('telescope').load_extension('dap') but that did not work. I tried creating a special folder in my configs lua/telescope/_extensions (separate folder) and put the file there but it didn't work either. How would I install telescope-dap?

I am using LunarVim to separate my user configs into a separate folder for simplicity.

@tosiek88
Copy link

Hi,
Insert dap.lua file from this repo, in ~/.local/share/lunarvim/site/pack/packer/start/nvim-dap/lua/telescope/_extensions
In your function lvim.builtin.telescope.on_config_done in LunarVim config file add:

	if lvim.builtin.dap.active then
		lvim.builtin.telescope.extensions.dap={}
		require("telescope").load_extension("dap")
	end

Peek 2021-10-10 11-02

@tosiek88
Copy link

Btw I am still, not sure how that in telescope/_extensions/init.lua will know where to looking for this extensions files. For me looks like it will recursively call same file to get extensions[<name_of_extension], but probably this is my lack of knowledge in Lua

    local ok, ext = pcall(require, "telescope._extensions." .. k)

@ccaprani
Copy link

Just a note that I had to manually copy the dap.lua to the _extensions folder as described above to get this to work on vanilla neovim using vim-lug. Note sure if it should have auto-installed or not, but if not, be good to update instructions.

@graciasc
Copy link

graciasc commented Dec 7, 2022

Running into the same issue using Nvchad

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

4 participants