telescope-dap.nvim icon indicating copy to clipboard operation
telescope-dap.nvim copied to clipboard

Installation

Open Vliro opened this issue 4 years ago • 4 comments
trafficstars

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.

Vliro avatar Aug 18 '21 09:08 Vliro

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 avatar Oct 10 '21 09:10 tosiek88

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)

tosiek88 avatar Oct 10 '21 09:10 tosiek88

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.

ccaprani avatar Jun 21 '22 13:06 ccaprani

Running into the same issue using Nvchad

graciasc avatar Dec 07 '22 17:12 graciasc