Skip to content

Commit

Permalink
feat: account for new verboseCompilation setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ckipp01 committed Dec 15, 2023
1 parent 826b754 commit 71c6e31
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
30 changes: 19 additions & 11 deletions doc/metals.txt
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ _ones that are sent and used by the server_
* |ammoniteJvmProperties|
* |bloopSbtAlreadyInstalled|
* |bloopVersion|
* |enableSemanticHighlighting|
* |excludedPackages|
* |fallbackScalaVersion|
* |gradleScript|
Expand All @@ -187,7 +188,7 @@ _ones that are sent and used by the server_
* |showImplicitConversionsAndClasses|
* |showInferredType|
* |superMethodLensesEnabled|
* |enableSemanticHighlighting|
* |verboseCompilation|

_ones that are used internally by `nvim-metals`_
* |disabledMode|
Expand Down Expand Up @@ -250,6 +251,15 @@ continually do this every time you want to use it even in the same workspace.
If people _actually_ use this setting and want that, submit a feature request,
if not it's not worth the extra work.

enableSemanticHighlighting *enableSemanticHighlighting*

Type: boolean ~
Default: true ~

When this option is enabled, Metals will provide semantic tokens for clients
that support it. The feature is still experimental and does not work for
all sources.

excludedPackages *excludedPackages*

Type: table as list ~
Expand Down Expand Up @@ -474,16 +484,6 @@ Default: true ~
When enabled Metals will populate code lenses for you to navigate to the
parent/super methods of members.


enableSemanticHighlighting *enableSemanticHighlighting*

Type: boolean ~
Default: true ~

When this option is enabled, Metals will provide semantic tokens for clients
that support it. The feature is still experimental and does not work for
all sources.

*useGlobalExecutable*
Type: boolean ~
Default: false ~
Expand All @@ -495,6 +495,14 @@ there is a specific reason that you want to manage your own version and
install manually, then I'd recommend not using this setting and just letting
`nvim-metals` handle it.

*verboseCompilation*
Type: boolean ~
Default: false ~

If a build server supports it (for example Bloop or Scala CLI), setting it to
true will make the logs contain all the possible debugging information
including that about incremental compilation in Zinc.

================================================================================
COMMANDS *metals-commands*

Expand Down
1 change: 1 addition & 0 deletions lua/metals/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ local valid_metals_settings = {
"showInferredType",
"superMethodLensesEnabled",
"testUserInterface",
"verboseCompilation",
}

-- We keep these separated from the `valid_metals_settings` just for clarity.
Expand Down

0 comments on commit 71c6e31

Please sign in to comment.