8000 bug(picker) LSP pickers fails to resume · Issue #1579 · folke/snacks.nvim · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
bug(picker) LSP pickers fails to resume #1579
Open
@carlos-algms

Description

@carlos-algms

Did you check docs and existing issues?

  • I have read all the snacks.nvim docs
  • I have updated the plugin to the latest version before submitting this issue
  • I have searched the existing issues of snacks.nvim
  • I have searched the existing issues of plugins related to this issue

Neovim version (nvim -v)

0.10.4

Operating system/version

MacOs

Describe the bug

When trying to resume an LSP picker, the error is shown:

No results found for lsp_references

Steps To Reproduce

  1. Go to a variable, or any symbol
  2. run :Snacks.picker.lsp_references()
  3. Select an item or close the picker
  4. Move the cursor to an empty line
  5. run: Snacks.picker.resume()
  6. The error is shown, and an empty picker is displayed

Expected Behavior

I would expect the picker to resume and show the same results, regardless of the cursor position.

Repro

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

require("lazy.minit").repro({
  spec = {
    { "folke/snacks.nvim", opts = {} },
    -- add any other plugins here
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0