Path to the global OpenCode config directory (`~/.config/opencode/`). OpenCode uses the XDG-style `~/.config/opencode/` path on all platforms (including macOS, where `dirs::config_dir()` returns `~/Library/Application Support/`), so we construct it from the home directory.
()
| 369 | /// `~/Library/Application Support/`), so we construct it from the |
| 370 | /// home directory. |
| 371 | fn global_config_dir() -> Option<std::path::PathBuf> { |
| 372 | dirs::home_dir().map(|h| h.join(".config").join("opencode")) |
| 373 | } |
| 374 | |
| 375 | /// Check whether the `atomic-opencode` plugin is installed globally. |
| 376 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected