sublimelsp / LSP-rust-analyzer

Convenience package for rust-analyzer
MIT License
70 stars 11 forks source link

type hints still dont work after merge #77 #79

Closed alexzanderr closed 2 years ago

alexzanderr commented 2 years ago

hello again

type hints dont work, they are enabled by default in the plugin settings, everything else works

image

i have the latest LSP-rust-analyzer plugin which has rust-analyzer 28-08-2022 tag

~/.cache/sublime-text/Package Storage/LSP-rust-analyzer
> ./rust-analyzer --version
rust-analyzer 0.3.1186-standalone (e8e598f64 2022-08-28)

i have tried these compiler toolchains in combination with the language server

what am i missing?

rwols commented 2 years ago

Do you have inlay hints enabled in ~/.config/sublime-text/User/LSP.sublime-settings?

    "show_inlay_hints": true,
alexzanderr commented 2 years ago

wow, cant believe, its working now image

thanks a lot.

but why its not enabled by default?

alexzanderr commented 2 years ago

i know this is out of topic, but since are we already talking about type hints:

is it possible to change the colors? if yes, how?

rchl commented 2 years ago

but why its not enabled by default?

Because it's a matter of preference and not enabling it seems like a better default. Also there are various bugs in ST regarding the feature that enables this - see Issues with phantoms used for Inlay Hints in https://github.com/sublimelsp/LSP/issues/2007.

alexzanderr commented 2 years ago

nice. thank you.

can i change the colors?

rchl commented 2 years ago

I'd say that there is no easy way currently. In theory there is a color scheme setting called "phantom_css" that is supposed to help with that but ST doesn't handle inheritance and merging of rules properly.