Kmpl: read struct defs directly from source instead of lsp_hover

This commit is contained in:
Levi Neely 2026-05-11 16:53:25 +02:00
parent ba7ff8f930
commit 176e1cc0f9
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ if [ -s "$tmpdir/hover_cur" ]; then
[ -z "$defn" ] && continue
dfile=${defn%%:*}
dline=${defn#*:}; dline=${dline%%:*}
python3 $OLLIE/t/lsp_hover "$dfile" "$dline" 1 2>/dev/null | tee -a "$tmpdir/hover_embedded" >> "$tmpdir/hover_cur" || true
# Read struct definition from file (until closing brace)
sed -n "${dline},/^}/p" "$dfile" 2>/dev/null | tee -a "$tmpdir/hover_embedded" >> "$tmpdir/hover_cur" || true
done < "$tmpdir/todo_types"
done
fi