Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

goto reference/definition have changed and are flaky now#6714

Unanswered
tfglasswing asked this question inQ&A
Discussion options

Before the last update of plugins, I could jump to all references withgr and the definition withgd.

gd stopped working (most times, but still works sometimes) andgr got replaced with this menu:

Screenshot 2025-10-30 at 2 16 39 pm

grr now opens the references in a list at the bottom of the editor:
Screenshot 2025-10-30 at 2 18 33 pm

instead of in an LSP references popup, like before (which I prefer):

image

Can someone shed some light which plugin is responsible for this behavior?

Even more weird, sometimes the functionality stops working alltogether andgr replaces the character under the cursor withr.

version

NVIM v0.11.2Build type: ReleaseLuaJIT 2.1.1748459687

plugins

  Loaded (28)    ● bufferline.nvim 2.3ms  VeryLazy    ● copilot.vim 0.3ms  start    ● CopilotChat.nvim 9.99ms  start    ● diffview.nvim 3.89ms  start    ● fzf-lua 15.91ms  <leader>/    ● lazy.nvim 18.15ms  init.lua    ● LazyVim 2.93ms  start    ● lualine.nvim 10.26ms  VeryLazy    ● mason-lspconfig.nvim 0.23ms  nvim-lspconfig    ● mason.nvim 17.68ms  nvim-lint    ● mini.icons 1.2ms 󰢱 mini.icons  LazyVim    ● neo-tree.nvim 11.98ms 󰢱 neo-tree.command  /Users/toby/config/nvim/init.lua    ● noice.nvim 2.29ms  VeryLazy    ● nui.nvim 0.12ms 󰢱 nui.line  neo-tree.nvim    ● nvim-lint 18.37ms  LazyFile    ● nvim-lspconfig 1.34ms  LazyFile    ● nvim-treesitter 1.99ms  VeryLazy    ● nvim-treesitter-textobjects 0.64ms  VeryLazy    ● nvim-ts-autotag 1.97ms  LazyFile    ● plenary.nvim 0.22ms  CopilotChat.nvim    ● smart-delete.nvim 0.38ms  start    ● snacks.nvim 0.62ms  start    ● todo-comments.nvim 1.56ms  LazyFile    ● tokyonight.nvim 0.41ms 󰢱 tokyonight  LazyVim    ● trouble.nvim 1.44ms 󰢱 trouble  lualine.nvim    ● ts-comments.nvim 0.55ms  VeryLazy    ● venv-selector.nvim 1.65ms  python    ● which-key.nvim 0.76ms  VeryLazy  Not Loaded (12)    ○ blink.cmp  InsertEnter  CmdlineEnter     ○ catppuccin     ○ conform.nvim  <leader>cF  <leader>cF (x)  ConformInfo     ○ grug-far.nvim  <leader>sr (x)  <leader>sr  GrugFar  GrugFarWithin     ○ helm-ls.nvim  helm     ○ lazydev.nvim  LazyDev  lua     ○ lazygit.nvim  LazyGit  LazyGitConfig  LazyGitCurrentFile  LazyGitFilter  LazyGitFilterCurrentFile     ○ markdown-preview.nvim  <leader>cp  MarkdownPreviewToggle  MarkdownPreview  MarkdownPreviewStop     ○ mini.surround  gsd  gsf  gsr  gsa  gsF  gsa (x)  gsh  gsn     ○ nvim-ts-context-commentstring     ○ render-markdown.nvim  norg  rmd  markdown  codecompanion  org     ○ SchemaStore.nvim   Disabled (7)    ○ flash.nvim     ○ friendly-snippets     ○ gitsigns.nvim     ○ mini.ai     ○ mini.comment     ○ mini.pairs     ○ persistence.nvim

Happy to provide more info if required.

You must be logged in to vote

Replies: 5 comments 32 replies

Comment options

That's not normal. What picker do you use?

You must be logged in to vote
3 replies
@rafaelderolez
Comment options

I'm not OP but I'm experiencing the same issue.
Here's my prettybarebones config. I just have the defaulteditor.snacks_picker enabled inLazyExtras.

@folke
Comment options

Are you also using fzf-lua, like op? If you have a command like:Fzf<tab> then it's fzf lua

@tfglasswing
Comment options

image

I assume it's fzf for me.

Comment options

Same issue.
Typescript + React project
Never touched any neovim configs, just use LazyExtras to enable typescript, so I might have default picker by LazyVim

You must be logged in to vote
2 replies
@folke
Comment options

Are you also using fzf-lua, like op? If you have a command like:Fzf<tab> then it's fzf lua

@rafaelderolez
Comment options

The only thing popping up for:Fzf was this
image.

Although I just ran a sync and it seems to be fine now!

Comment options

Are you all 100% certain you're on the latest release?
Please update everything.

You must be logged in to vote
1 reply
@tfglasswing
Comment options

I'm on v0.11.2 (mac) and v0.11.4 (linux/ubuntu), both have the same configuration (synced between two machines) and both show the same symptoms. All plugins are up to date (<leader>lU).

Comment options

Try with a fresh LazyVim installation to see if you can repro. From my testing I could not repro

1.`mkdir~/.config/lazytest`2.`git clone https://github.com/LazyVim/starter~/.config/lazytest`3.`NVIM_APPNAME=lazytest nvim` andwaitfor installation to finish4. Restart Neovim withcommand from step 35. Enable Typescript Extra and restart again withcommand from step 3

For cleanup

rm -rf~/.local/share/lazytestrm -rf~/.local/state/lazytestrm -rf~/.cache/lazytestrm -rf~/.config/lazytest

Also what doesverbose nmap gd andverbose nmap gr print out?

You must be logged in to vote
15 replies
@folke
Comment options

So remove those mappings you added. Does it then work as expected?

@folke
Comment options

The correct gr/gd mappings are only added in buffers that have LSP attached that provide definitions/references, so to test you have to be in an actual buffer with LSP attached

@tfglasswing
Comment options

So remove those mappings you added. Does it then work as expected?

It is working now. I will have to use it more to see if it works consistently now.
(I have kept updating all plugins throughout the day)

@folke
Comment options

that's what I figured. Like I said I fixed that exact issue, but your "work-around" actually did exactly the opposite of what you wanted, so that's why it didn't work for you.

@folke
Comment options

fyi, I removed that work-around from the description here, so that other users don't just copy that in their config without reading everything

Comment options

Update from my end:

  1. Updated nvim (on mac) to:
Buildtype: ReleaseLuaJIT2.1.1761727121

(worked withbrew install neovim).

  1. Removed my custom keybindings as@folke asked for.

  2. Worked fine, but can see it again,gr opening the dialog:

Screenshot 2025-11-03 at 12 40 00 pm

gd highlighting the selection and jumping to the next finding.

  1. :verbose nmap gd:
Screenshot 2025-11-03 at 12 42 20 pm

:verbose nmap gr
Screenshot 2025-11-03 at 12 43 05 pm

  1. LspRestart fixed it.

I will remove plugins and see if I can find one that might be causing this.

  1. Found that LSPs were outdated. I updated them, but the issue is still there (every now and then).
Screenshot 2025-11-03 at 3 29 50 pm
You must be logged in to vote
11 replies
@tfglasswing
Comment options

gotcha, done.

Screenshot 2025-11-04 at 5 36 36 pm

will update how it goes (probably tomorrow again).

@tfglasswing
Comment options

image
NVIM v0.11.5Build type: ReleaseLuaJIT 2.1.1741730670

Unfortunately it is still happening occasionally. I have not found a reliable way to reproduce it, but thatLspRestart pyright fixes it.

@dpetka2001
Comment options

Did you try the steps from thiscomment to test with a fresh LazyVim installation? And only enable the Python Extra, don't copy over any of your personal configuration.

You might also be interested in settingvim.g.lazyvim_python_lsp = "basedpyright" in your~/.config/lazytest/lua/config/options.lua to makebasedpyright the default LSP server for Python to see if that makes any difference compared topyright. And just to make sure, also open Mason UI with<leader>cm and ifpyright is installed then go with your cursor on the wordpyright and pressX (capitalx) to uninstall it because Mason does not support automatic uninstallation of LSP servers.

@tfglasswing
Comment options

I haven't, given it happens sporadically and I cannot reproduce it, I would have to work with minimum config for a while which is nearly impossible, Neovim custom config is just too awesome! But I am doing it now, will post an update (edit: done, seenext comment).

I have swappedpyright forbasedpyright as you described but it happened again.

Here are some more observations:

  1. It is broken for the current buffer only, switching to another buffer works as usual.
  2. RunningLspInfo on both buffers shows 0 difference (I copied and diff'ed)
  3. :verbose nmap gr shows a difference:
> n  gr          *@<Cmd>FzfLua lsp_references      jump1=true ignore_current_line=true<CR>>                  References
  1. :verbose nmap gd also shows a difference:
No mapping found (obviously in the buffer that doesn't work)

vs

n  gd          *@<Cmd>FzfLua lsp_definitions     jump1=true ignore_current_line=true<CR>                 Goto Definition
  1. Closing the buffer (bd) and reopening it, does not fix it.
  2. It happens on freshly opened buffers.
@tfglasswing
Comment options

@dpetka2001 ran fresh installation - as you described, only thing I installed afterwards islang.python fromLazyExtras and it did happen again:

gr

Screenshot 2025-11-06 at 11 45 35 am

LspRestart fixed it.

I have kept the "lazytest" installation in case you want me to test something else.

If you or@folke want to jump on a call to do some live debugging, I am more than happy to!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
5 participants
@tfglasswing@folke@rafaelderolez@dpetka2001@nekochanoide

[8]ページ先頭

©2009-2025 Movatter.jp