LintaoAmons/cd-project.nvim

[Question] How to use 'project_dir_pattern'

Opened this issue · 1 comments

Hi,

could you please clarify the use of the following configuration?

-- this controls the behaviour of `CdProjectAdd` command about how to get the project directory
project_dir_pattern = { ".git", ".gitignore", "Cargo.toml", "package.json", "go.mod" },

From the description it's not clear what it does.

Thank you.

The comment sums up nicely what the config option is supposed to do. If the directory you're trying to add doesn't have any of those files/dir in them, It shouldn't be added to you JSON file.

Although... while testing it, it seems like it's not working as intended, I'll look into this soon.