[ Partially SOLVED] Rust inlay Hints does not work #6815
-
Hi, I see that release 23.03 bring us inlay hints. --- config.toml ------ --- languages.toml --- [language.config] [language.config.rust.inlayHints] [language.config.check] What am I doing wrong? Thanks for the reply. BTW, great work anyway for all you have done! 👍 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
my [[language]]
name = "rust"
auto-format = true
[language.language-server]
command = "rustup"
args = ["run", "stable", "rust-analyzer"]
[language.config]
inlayHints.bindingModeHints.enable = true
inlayHints.closingBraceHints.minLines = 10
inlayHints.closureReturnTypeHints.enable = "with_block"
inlayHints.discriminantHints.enable = "fieldless"
inlayHints.lifetimeElisionHints.enable = "skip_trivial"
inlayHints.typeHints.hideClosureInitialization = false |
Beta Was this translation helpful? Give feedback.
-
@truongvan You are duplicating a lot of settings for nothing, these are already built in defaults: Lines 22 to 28 in 080f85c |
Beta Was this translation helpful? Give feedback.
I toggle it on and off like this, I don't think you need any other settings, I suggest you delete yours and try just:
config.toml