diff --git a/doc/metals.txt b/doc/metals.txt index e26a870..a83a946 100644 --- a/doc/metals.txt +++ b/doc/metals.txt @@ -184,6 +184,7 @@ _ones that are sent and used by the server_ * |excludedPackages| * |fallbackScalaVersion| * |gradleScript| + * |inlayHints| * |javaFormat.eclipseConfigPath| * |javaFormat.eclipseProfile| * |javaHome| @@ -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 ~ diff --git a/lua/metals/config.lua b/lua/metals/config.lua index 982a4e1..7b10e96 100644 --- a/lua/metals/config.lua +++ b/lua/metals/config.lua @@ -119,6 +119,7 @@ local valid_metals_settings = { "excludedPackages", "fallbackScalaVersion", "gradleScript", + "inlayHints", "javaFormat.eclipseConfigPath", "javaFormat.eclipseProfile", "javaHome",