fix(core): load config across git boundaries (#36577)
Co-authored-by: 𝓛𝓲𝓽𝓽𝓵𝓮 𝓕𝓻𝓪𝓷𝓴 <little-frank@opencord.local> Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
This commit is contained in:
parent
7e9b9cb0fd
commit
f112a73c06
6 changed files with 17 additions and 40 deletions
|
|
@ -116,7 +116,7 @@ For project-specific TUI settings, add `tui.json` alongside it.
|
|||
Place project specific config in the root of your project.
|
||||
:::
|
||||
|
||||
When OpenCode starts up, it looks for config files in the current directory and every ancestor directory. Ancestor configs are loaded first, so configs closer to the current directory can override them. This traversal continues across Git repository boundaries.
|
||||
When OpenCode starts up, it first looks for a config file in the current directory, then traverses up to the nearest Git directory.
|
||||
|
||||
This is also safe to be checked into Git and uses the same schema as the global one.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue