We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When there is only one reference, some time using the :Telescope lsp_references does not properly jump to the reference.
:Telescope lsp_references
NVIM v0.10.0 Build type: Release LuaJIT 2.1.1713773202
macOS 14.5 23F79 arm64
telescope 0.1.6
telescope: health#telescope#check Checking for required plugins ~ - OK plenary installed. - WARNING nvim-treesitter not found. (Required for `:Telescope treesitter`.) Checking external dependencies ~ - OK rg: found ripgrep 14.1.0 - OK fd: found fd 10.1.0 ===== Installed extensions ===== ~
main.go
package main import "fmt" func main() { hello() } func hello() { fmt.Println("Hello, World!") }
hello()
func hello() {
Cursor should jump to the only reference hello() inside
func main() { hello() }
The cursor won't move.
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath, }) end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ { "nvim-telescope/telescope.nvim", tag = "0.1.6", dependencies = { "nvim-lua/plenary.nvim" }, }, { "neovim/nvim-lspconfig", config = function() require("lspconfig").gopls.setup({}) end, }, { "williamboman/mason.nvim", build = ":MasonUpdate", opts = {} }, { "williamboman/mason-lspconfig.nvim", dependencies = { "williamboman/mason.nvim" }, opts = { ensure_installed = { "gopls" } }, }, })
The text was updated successfully, but these errors were encountered:
find_references
Submitted a PR myself here #3120.
Sorry, something went wrong.
Got the same issue.
Successfully merging a pull request may close this issue.
Description
When there is only one reference, some time using the
:Telescope lsp_references
does not properly jump to the reference.Neovim version
Operating system and version
macOS 14.5 23F79 arm64
Telescope version / branch / rev
telescope 0.1.6
checkhealth telescope
Steps to reproduce
main.go
and paste in the following code.hello()
on the linefunc hello() {
:Telescope lsp_references
Expected behavior
Cursor should jump to the only reference
hello()
insideActual behavior
The cursor won't move.
Minimal config
The text was updated successfully, but these errors were encountered: