How to force all the projects in the workspace to appear when using Snack.picker.lsp_references() #2167
Unanswered
MichaelBitard
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Wait, are these mysterious "we" in the room too? This code: snacks.nvim/lua/snacks/picker/source/lsp/init.lua Lines 392 to 403 in bc0630e Sends a request to the LSP server to get references. You can achieve the same with Maybe the server requires a file to be opened before it registers the workspace. In that case, you can try sending Tip Try to manually set |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm sorry, we cannot pinpoint what we are doing wrong here.
We have a typescript monorepo with 3 projects (in subfolders packages/api, packages/common, packages/ui), we use LazyVim with nvim 0.11.3.
We launch nvim and open a file in the common.
If we search references of a symbol in this file, it does not display references in packages/api or packages/ui, only in packages/common.
Where it gets weird, is that, if we open a file in packages/api, close the buffer, and search references of the same symbol, this time it finds this symbol in the common and the api.
We tried a bunch of stuff, including typescript project references, forcing the workspaces inside nvim-lspconfig but so far nothing works, except opening a file in each project.
We don't really understand the
finder = "lsp_references",
we have the feeling that something is configurable here, but maybe not.We tried to force the nvim root_dir to 'cwd' too.
Beta Was this translation helpful? Give feedback.
All reactions