-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Labels
ci:backport release-0.11filesystemfile metadata/attributes, filenames, path manipulationfile metadata/attributes, filenames, path manipulationluastdlibstdlib
Milestone
Description
Problem
Is it reasonable that vim.fs.root() search falls back to Nvim's current-directory for unnamed and special buffers? If for example, current-directory is / or ~ and a marker matches, we might end up with / or ~ as root_dir. To have a root_dir with so many files could be problematic depending on the language server and configuration?
I'd be happy to make a pull request if agreement is reached.
Expected behavior
vim.fs.root() returns nil when source is an unnamed or a special buffer.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ci:backport release-0.11filesystemfile metadata/attributes, filenames, path manipulationfile metadata/attributes, filenames, path manipulationluastdlibstdlib