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
Opening a .git project still works as expected (the directory of that project is printed, and running :cd confirms.)
Open a folder that rooter would not call a project. Your home directory will be printed, and the output of :cd will also agree that it's in your home directory.
The text was updated successfully, but these errors were encountered:
I had a package.json in my home directory. This happens all the time when someone does npm i <package name> outside of a project, as this installs the package at a user-level scope. This is intentional behavior of npm, and very frequently used in guides for popular JavaScript libraries.
I'll leave this issue open in case you want to add a special-case for this, a change to the default settings, and/or something in the readme.
Lazerbeak12345
changed the title
bug with let g:rooter_change_directory_for_non_project_files = 'current'let g:rooter_change_directory_for_non_project_files = 'current' doesn't work when you have a package.json at ~Jan 20, 2022
The most recent commit (0415be8) added package.json to the README, after the previous commit introduced it (see #123).
In retrospect adding package.json as a default pattern caused more trouble than I expected (I rarely use npm so didn't have a view on it either way). However now it's there I don't want to remove it unless it becomes a big problem – it's annoying when there's churn in the defaults.
For some reason this has recently been behaving (seemingly) identical to the
'home'
value in non-project files.Neovim version:
NVIM v0.7.0-dev+890-g574a58220
Simplest
nvim/init.vim
: (I didn't actually test this example, but I took out things I knew would effect it, so this should recreate it)to recreate
Opening a
.git
project still works as expected (the directory of that project is printed, and running:cd
confirms.)Open a folder that rooter would not call a project. Your home directory will be printed, and the output of
:cd
will also agree that it's in your home directory.The text was updated successfully, but these errors were encountered: