Skip to content

Commit 29f1f95

Browse files
committed
Different symbol kinds for theorem_kind and definition_kind
1 parent 57ed95c commit 29f1f95

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

language-server/dm/documentManager.ml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,11 @@ let reset_to_top st =
249249
let get_document_symbols st =
250250
let outline = Document.outline st.document in
251251
let to_document_symbol elem =
252-
let Document.{name; statement; range} = elem in
253-
let kind = SymbolKind.Function in
252+
let Document.{name; statement; range; type_} = elem in
253+
let kind = begin match type_ with
254+
| TheoremKind _ -> SymbolKind.Function
255+
| DefinitionType _ ->SymbolKind.Variable
256+
end in
254257
DocumentSymbol.{name; detail=(Some statement); kind; range; selectionRange=range; children=None; deprecated=None; tags=None;}
255258
in
256259
List.map to_document_symbol outline

0 commit comments

Comments
 (0)