Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions OPTIONS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2483,6 +2483,29 @@ false



## kernels\.rust\.lsp\.rust-analyzer\.typeHints



**Rust-analyzer: show inferred types inline**

Draw the inferred type next to a ` let ` binding or a closure parameter\. rust-analyzer ships this off and expects the editor to ask for it, which is why it produces no hints by default\.



*Type:*
boolean



*Default:*

```nix
true
```



## kernels\.rust\.misc\.enableVariableInspector


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ let
"reborrowHints" = "never";
"renderColons" = true;
"typeHints" = {
"enable" = false;
"enable" = settings.typeHints;
"hideClosureInitialization" = false;
"hideNamedConstructor" = false;
};
Expand Down
6 changes: 6 additions & 0 deletions modules/kernels/rust/module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ in
type = types.bool;
default = true;
};
lsp.rust-analyzer.typeHints = mkOption {
title = "Rust-analyzer: show inferred types inline";
description = "Draw the inferred type next to a `let` binding or a closure parameter. rust-analyzer ships this off and expects the editor to ask for it, which is why it produces no hints by default.";
type = types.bool;
default = true;
};
lsp.rust-analyzer.debug = mkOption {
title = "Rust-analyzer: debug output";
type = types.bool;
Expand Down