From e46682c39e8d12af384930084baf0175f230a8f6 Mon Sep 17 00:00:00 2001 From: Chris Kipp Date: Thu, 22 Feb 2024 10:53:50 +0100 Subject: [PATCH] feat: add in new autoImportBuild setting closes #650 --- doc/metals.txt | 14 ++++++++++++++ lua/metals/config.lua | 1 + 2 files changed, 15 insertions(+) diff --git a/doc/metals.txt b/doc/metals.txt index a23e1d0..692756b 100644 --- a/doc/metals.txt +++ b/doc/metals.txt @@ -176,6 +176,7 @@ All available settings: _ones that are sent and used by the server_ * |ammoniteJvmProperties| + * |autoImportBuild| * |bloopSbtAlreadyInstalled| * |bloopVersion| * |enableSemanticHighlighting| @@ -219,6 +220,19 @@ property needs to be a separate item. > {"-Xmx1G", "-Xms100M"} < +autoImportBuild *autoImportBuild* + +Type: string ~ +Default: "off" ~ + +Automatically import your build instead of recieving a prompt to ask you. + +"initial" means that your build will only be automatically be imported upon +first opening a project. + +"all" means that your build will just always be automatically imported or +reloaded upon detected changes. + bloopSbtAlreadyInstalled *bloopSbtAlreadyInstalled* Type: boolean ~ diff --git a/lua/metals/config.lua b/lua/metals/config.lua index 1a7c464..532a354 100644 --- a/lua/metals/config.lua +++ b/lua/metals/config.lua @@ -111,6 +111,7 @@ local metals_init_options = { -- so they are just passed along. local valid_metals_settings = { "ammoniteJvmProperties", + "autoImportBuild", "bloopSbtAlreadyInstalled", "bloopVersion", "enableSemanticHighlighting",