Pass a configuration table to require("project_nvim").setup {}. The plugin uses these settings to manage project detection and directory switching.
Key configuration options include:
manual_mode: If true, the plugin won't automatically change directories. Use :ProjectRoot to do it manually.detection_methods: An ordered list of methods to find the root (e.g., {"lsp", "pattern"}).patterns: Glob patterns used for directory detection when using the pattern method.ignore_lsp: A table of LSP client names to ignore.exclude_dirs: Directories where root detection should not be calculated.show_hidden: Boolean to show hidden files in Telescope.silent_chdir: If false, a message is shown whenever the directory changes.scope_chdir: The scope of the directory change ('global', 'tab', or 'win').datapath: The path where project history is stored.
require("project_nvim").setup {
manual_mode = false,
detection_methods = { "lsp", "pattern" },
patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "Makefile", "package.json" },
ignore_lsp = {},
exclude_dirs = {},
show_hidden = false,
silent_chdir = true,
scope_chdir = 'global',
datapath = vim.fn.stdpath("data"),
}