lspconfig root detection not fixed, workaround noted

This commit is contained in:
Ray Elliott 2025-12-06 23:42:44 +00:00
commit 2638104bae
2 changed files with 14 additions and 1 deletions

View file

@ -49,6 +49,17 @@ return {
setup("jsonls")
setup("bashls")
setup("marksman")
setup("intelephense")
-- TODO(r): Root detection can pick a parent repo in nested setups.
-- Workaround noted in MIGRATION_PLAN.md: create an empty `.git` (or `.nvimroot`)
-- in the intended workspace root to pin LSP root until we refine root_dir further.
setup("intelephense", {
single_file_support = false,
root_dir = util.root_pattern(
".neoconf.json",
"composer.json",
".nvimroot",
".git"
),
})
end,
}