Skip to content

Commit

Permalink
feat: add inlay hints setting
Browse files Browse the repository at this point in the history
  • Loading branch information
gAbelli committed Sep 14, 2024
1 parent 1b87e6b commit c4e883a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions doc/metals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ _ones that are sent and used by the server_
* |excludedPackages|
* |fallbackScalaVersion|
* |gradleScript|
* |inlayHints|
* |javaFormat.eclipseConfigPath|
* |javaFormat.eclipseProfile|
* |javaHome|
Expand Down Expand Up @@ -348,6 +349,21 @@ Note: Setting this to a higher version than Metals currently supports won't
work and you'll just get a warning. So don't be cheeky and think you can bump
faster than Metals can by using this.

inlayHints *inlayHints*

Type: table ~
Default: {} ~

Table of inlay hints to enable. >
{
hintsInPatternMatch = { enable = true },
implicitArguments = { enable = true },
implicitConversions = { enable = true },
inferredTypes = { enable = true },
typeParameters = { enable = true },
}
<

javaFormat.eclipseConfigPath *javaFormat.eclipseConfigPath*

Type: string ~
Expand Down
1 change: 1 addition & 0 deletions lua/metals/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ local valid_metals_settings = {
"excludedPackages",
"fallbackScalaVersion",
"gradleScript",
"inlayHints",
"javaFormat.eclipseConfigPath",
"javaFormat.eclipseProfile",
"javaHome",
Expand Down

0 comments on commit c4e883a

Please sign in to comment.