vim-rooter icon indicating copy to clipboard operation
vim-rooter copied to clipboard

Custom root detection for NPM workspaces

Open codeinabox opened this issue 1 year ago • 1 comments

Thank you for this plug-in! I've been using it to detect the project root using a package.json pattern, which works great. However, I've discovered when working with a project with NPM workspaces I need more sophisticated root detection, and to inspect if the package.json contains a workspaces key - is this possible?

codeinabox avatar Mar 26 '24 15:03 codeinabox

The code isn't capable at the moment of inspecting the contents of files.

Perhaps you could give a specific example of a rooter situation with a workspace? (In #124 we came up with a pattern that worked with Rust workspaces, so maybe we could do the same here.)

airblade avatar Mar 26 '24 16:03 airblade