Skip to content

Commit

Permalink
Switch hover formatting language
Browse files Browse the repository at this point in the history
  • Loading branch information
aazuspan committed Aug 12, 2024
1 parent 230da3e commit 1d84567
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/spinasm_lsp/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,9 @@ async def hover(ls: SPINAsmLanguageServer, params: lsp.HoverParams) -> lsp.Hover
None
if not hover_msg
else lsp.Hover(
# Format as Python to get color coding for literals
contents={"language": "python", "value": f"{hover_msg}"},
# Java markdown formatting happens to give the best color-coding for
# hover messages
contents={"language": "java", "value": f"{hover_msg}"},
range=token.range,
)
)
Expand Down

0 comments on commit 1d84567

Please sign in to comment.