use std::sync::Arc;
use crate::symbols::Symbol;
pub fn hover_for_symbol(symbol: &Arc<Symbol>) -> String {
let kind_label = symbol.kind.label();
let name = symbol.name.display();
let mut content = format!("**{kind_label}** `{name}`\n\n");
let fence = if symbol.definition_text.contains("```") {
"````"
} else {
"```"
};
content.push_str(fence);
content.push_str("sql\n");
content.push_str(&symbol.definition_text);
content.push('\n');
content.push_str(fence);
content
}