Skip to content

let g:rooter_change_directory_for_non_project_files = 'current' doesn't work when you have a package.json at ~ #125

@Lazerbeak12345

Description

@Lazerbeak12345

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)

call plug#begin()
Plug 'airblade/vim-rooter'
call plug#end()
let g:rooter_change_directory_for_non_project_files = 'current'

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions