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
Description
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
- Open files in one project.
- 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:
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.