Skip to content
New issue

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

find stops too early #78

Closed
rawhat opened this issue Aug 21, 2023 · 0 comments
Closed

find stops too early #78

rawhat opened this issue Aug 21, 2023 · 0 comments

Comments

@rawhat
Copy link

rawhat commented Aug 21, 2023

The find key for finding the presence of a folder uses the LSP root as the stop property. This seems to stop before actually checking that folder. This seems like maybe it should be using the parent of the root? For example:

05:10:58 PM msg_show   :lua print(vim.inspect(vim.fs.find({"gleam.toml"}, { upward = true, stop = "/home/alex/gleams/mist", path = "/home/alex/gleams/mist/src/mist.gleam"}))) {}
05:11:10 PM msg_show   :lua print(vim.inspect(vim.fs.find({"gleam.toml"}, { upward = true, stop = "/home/alex/gleams", path = "/home/alex/gleams/mist/src/mist.gleam"}))) { "/home/alex/gleams/mist/gleam.toml" }

You can see that the file definitely exists. The top one is what the plugin is using as the arguments. The second is just me testing with the parent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant