From 822d9a1bf343040f5a6387c366f34ec8559697dd Mon Sep 17 00:00:00 2001 From: Woshiluo Luo Date: Wed, 13 Aug 2025 23:58:33 +0800 Subject: [PATCH] linter/scala/metals: add build.mill as project root detect file (#5012) Signed-off-by: Woshiluo Luo --- ale_linters/scala/metals.vim | 1 + doc/ale-scala.txt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ale_linters/scala/metals.vim b/ale_linters/scala/metals.vim index 1362e1a3..363aa990 100644 --- a/ale_linters/scala/metals.vim +++ b/ale_linters/scala/metals.vim @@ -13,6 +13,7 @@ function! ale_linters#scala#metals#GetProjectRoot(buffer) abort let l:potential_roots = [ \ 'build.sc', + \ 'build.mill', \ 'build.sbt', \ '.bloop', \ '.metals', diff --git a/doc/ale-scala.txt b/doc/ale-scala.txt index 4c188880..5a4ea793 100644 --- a/doc/ale-scala.txt +++ b/doc/ale-scala.txt @@ -33,8 +33,8 @@ g:ale_scala_metals_project_root Default: `''` By default the project root is found by searching upwards for `build.sbt`, - `build.sc`, `.bloop` or `.metals`. If the project root is elsewhere, you - can override the project root directory. + `build.sc`, `build.mill`, `.bloop` or `.metals`. If the project root is elsewhere, + you can override the project root directory. ===============================================================================