From e342bc0a1523d53404c5700c94664b1fbcea27ba Mon Sep 17 00:00:00 2001 From: Chris Kipp Date: Thu, 22 Feb 2024 11:08:26 +0100 Subject: [PATCH] feat: add in new `defaultBspToBuildTool` user config relates to https://github.com/scalameta/metals/pull/6121/ --- doc/metals.txt | 9 +++++++++ lua/metals/config.lua | 1 + 2 files changed, 10 insertions(+) diff --git a/doc/metals.txt b/doc/metals.txt index 692756b..e26a870 100644 --- a/doc/metals.txt +++ b/doc/metals.txt @@ -179,6 +179,7 @@ _ones that are sent and used by the server_ * |autoImportBuild| * |bloopSbtAlreadyInstalled| * |bloopVersion| + * |defaultBspToBuildTool| * |enableSemanticHighlighting| * |excludedPackages| * |fallbackScalaVersion| @@ -260,6 +261,14 @@ The highlight group that will be used to show decorations. For example, this will change the way worksheet evaluations are displayed in `*.worksheet.sc` file. +defaultBspToBuildTool *defaultBspToBuildTool* + +Type: boolean ~ +Default: false ~ + +When your build tool can also serve as your build server, default to using it +for BSP. The default is Bloop for build tools that Bloop supports. + *disabledMode* Type: boolean ~ Default: false ~ diff --git a/lua/metals/config.lua b/lua/metals/config.lua index 532a354..769e05f 100644 --- a/lua/metals/config.lua +++ b/lua/metals/config.lua @@ -114,6 +114,7 @@ local valid_metals_settings = { "autoImportBuild", "bloopSbtAlreadyInstalled", "bloopVersion", + "defaultBspToBuildTool", "enableSemanticHighlighting", "excludedPackages", "fallbackScalaVersion",