lspconfig root detection not fixed, workaround noted
This commit is contained in:
parent
319c66bc0a
commit
2638104bae
2 changed files with 14 additions and 1 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue