emacs-lsp / lsp-ui

UI integrations for lsp-mode
https://emacs-lsp.github.io/lsp-ui
GNU General Public License v3.0
1.03k stars 141 forks source link

Syntax coloring for java help buffers #689

Open alikthename opened 2 years ago

alikthename commented 2 years ago

When calling lsp-describe-thing-at-point the buffer with javadoc opens up. Everything is good there except the code examples are all with one color (no syntax coloring).

Emacs version: GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 2021-03-22 lsp packages from melpa: lsp-mode 20220325.1415 helm-lsp 20210419.2014 lsp-java 20220325.547
lsp-treemacs 20220102.1517 lsp-ui 20220311.1634

LionyxML commented 4 months ago

@jcs090218 by any means did you managed to fix it?

I am having the same issue right now with typescript/rust or any other.

Also happens on eldoc.

jcs090218 commented 4 months ago

Yeah, it should have been fixed a long time ago. I'm unsure about the eldoc, but the lsp-ui-doc should be fixed. 🤔

LionyxML commented 4 months ago

I figured it out.

lsp gives me a markdown file with ```typescript \n ```, and for what i could see, the rendering of this typescript code tag using typescript-ts-mode did not worked, I had to install typescript-mode manually only for the sake of having proper formatting... :/

jcs090218 commented 4 months ago

Oh... yeah. This could be an issue. Many packages still don't support -ts mode yet. 😅

LionyxML commented 4 months ago

Probably the case.

I opened an issue on markdown-mode package, lets see if it gets some attention: https://github.com/jrblevin/markdown-mode/issues/824