Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

When there are multiple projects opend in one nvim instance, null-ls will only start one instance at the first project root, and other project's local configuration files cannot be respected #1134

Open
@milanglacier

Description

@milanglacier

FAQ

  • I have checked the FAQ and it didn't resolve my problem.

Issues

  • I have checked existing issues and there are no issues with the same problem.

Neovim Version

NVIM v0.8.0-dev-1092-g89b9eab63-dirty

Operating System

macOS

Minimal config

It's not related to config files.

Steps to reproduce

  1. Open files in one project.
  2. Open another file in another project.

We can simply assume the two projects are two git projects.
Suppose the first project is a lua project, and the second is a python project,
I have some project local configuration files (for example .flake8),
then open files in the second project will result in, say the following diagnostic errors:

Screen Shot 2022-09-24 at 04 16 27

Because flake8 spawned by null-ls does not start at the correct project root.

Expected behavior

Like what lspconfig did when there are multiple projects are detected, spawn multiple lsps under different root directory.

Actual behavior

Null-ls will only spawn one lsp in the first root directory.
Or if there is only one project in this nvim instance, the null-ls works fine, as the project root of null-ls is correct.

Debug log

Not related

Help

Yes, but I don't know how to start. I would need guidance

Implementation help

No response

Requirements

  • I have read and followed the instructions above and understand that my issue will be closed if I did not provide the required information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions