Skip to content

Commit

Permalink
feat: add in build.mill files for root patterns (#705)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckipp01 authored Dec 28, 2024
1 parent abf4a2b commit e6b02c9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lua/metals/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,17 @@ local function validate_config(config, bufnr)
-- custom patters to be passed in without doing the entire root_dir logic
-- yourself.
config.root_patterns = config.root_patterns
or { "build.sbt", "build.sc", "build.gradle", "build.gradle.kts", "pom.xml", ".scala-build", "bleep.yaml", ".git" }
or {
"build.sbt",
"build.sc",
"build.mill",
"build.gradle",
"build.gradle.kts",
"pom.xml",
".scala-build",
"bleep.yaml",
".git",
}

local bufname = api.nvim_buf_get_name(bufnr)

Expand Down

0 comments on commit e6b02c9

Please sign in to comment.