You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use the file finder (<leader>f), Telescope searches my entire repository (which is what I want), but the results falsely claim to be in the same package as the current file. For instance, If I'm looking at fileIAmLookingAt.js and I search for LookingFor, the Telescope match says: ../src/FileIAmLookingFor.js instead of ../../packageC/src/FileIAmLookingFor.js.
When I do a string search (<leader>st), Telescope only searches within the current package (i.e. the package of the file in the current buffer). I get no hits outside of the current package. (There's no issue with reporting the relative path correctly.)
I expected:
Both searches to take place at the repository root.
The file displayed paths to be relative to the current buffer (or, possibly, absolute from the root).
I didn't have either issue with my previous Telescope implementation (but I don't recall any details on setting that up). I'm sure I'm doing something wrong here -- any guidance is welcome!
LunarVim version
release-1.3/neovim-0.9-d1c1bace
Neovim version (>= 0.9.1)
0.9.5
Terminal name
Terminal (MacOS)
Operating system/version
macOS 14.2 (23C64)
Steps to reproduce
See above.
Screenshots
No response
The text was updated successfully, but these errors were encountered:
I'm guessing that this is because my cwd is getting set to the (Javascript) package of the current file whenever I switch buffers. This doesn't seem to be autochdir doing this, best I can tell. I don't know what plugin is changing the directory or how to prevent it -- any ideas?
This turns off the code that was updating cwd whenever I changed buffers. Theoretically I can also set the project root to ".git" and that would probably also work:
lvim.builtin.project.patterns = { ".git" }
(In my case I decided project.nvim wasn't adding much for my current workflow so just turned it off.)
But figuring this out was harder than it should have been, and the defaults here clearly didn't do what I wanted/expected in my Javascript monorepo, so I'll leave this issue open.
Problem description
Just installed LunarVim. I have a Javascript/Typescript repository with a number of packages:
When I use the file finder (
<leader>f
), Telescope searches my entire repository (which is what I want), but the results falsely claim to be in the same package as the current file. For instance, If I'm looking atfileIAmLookingAt.js
and I search forLookingFor
, the Telescope match says:../src/FileIAmLookingFor.js
instead of../../packageC/src/FileIAmLookingFor.js
.When I do a string search (
<leader>st
), Telescope only searches within the current package (i.e. the package of the file in the current buffer). I get no hits outside of the current package. (There's no issue with reporting the relative path correctly.)I expected:
I didn't have either issue with my previous Telescope implementation (but I don't recall any details on setting that up). I'm sure I'm doing something wrong here -- any guidance is welcome!
LunarVim version
release-1.3/neovim-0.9-d1c1bace
Neovim version (>= 0.9.1)
0.9.5
Terminal name
Terminal (MacOS)
Operating system/version
macOS 14.2 (23C64)
Steps to reproduce
See above.
Screenshots
No response
The text was updated successfully, but these errors were encountered: