sqry_cli/plugin_defaults.rs
1//! Default plugin registration for SQRY
2//!
3//! This module now delegates to `sqry_plugin_registry` to ensure a single source of truth.
4
5use sqry_core::plugin::PluginManager;
6
7/// Create a `PluginManager` with all built-in language plugins registered.
8#[must_use]
9pub fn create_plugin_manager() -> PluginManager {
10 sqry_plugin_registry::create_plugin_manager()
11}
12
13#[cfg(test)]
14mod tests {
15 use super::*;
16
17 #[test]
18 fn test_create_plugin_manager_delegates() {
19 let pm = create_plugin_manager();
20 assert!(pm.plugin_for_extension("rs").is_some());
21 }
22}