Closed ShiChenCong closed 5 months ago
My bad, the code example was wrong. Just updated the docs.
Should be sources
instead of source
local trouble = require("trouble.sources.telescope")
local telescope = require("telescope")
telescope.setup({
defaults = {
mappings = {
i = { ["<c-t>"] = trouble.open },
n = { ["<c-t>"] = trouble.open },
},
},
})
I had already used sources
before commit this issue
local trouble = require("trouble.sources.telescope")
same error
Are you sure that trouble
variable is the one pointing to require("trouble.sources.telescope")
and not to require("trouble")
?
What is the full traceback from your screenshot?
<a-q>
which is executing trouble.open
Still works for me. What is the full stacktrace?
Are you using the latest trouble version?
Was able to reproduce. Should be fixed now!
I have just created the minimal reproduce repo 😂 After update, It works perfectly, Thank you for the work!
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.0-dev-2663+gc1c6c1ee1
Operating system/version
14.2.1 (23C71)
Describe the bug
Steps To Reproduce
telescope.setup({ defaults = { mappings = { i = { [""] = trouble.open },
n = { [""] = trouble.open },
},
},
})
require('trouble').setup({ })