-
-
Notifications
You must be signed in to change notification settings - Fork 109
Null-ls doesn't attach any sources #812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Quite frankly I'm sick of null-ls in general, and starting to regret supporting it as a module after migrating to conform and nvim-lint. That aside, I think the source you are adding is missing an should_attach condition. Please refer to null-ls documentation. Alternatively it might be that other plugins take priority, and null-ls disables itself for compatibility. If you could isolate the problem to a specific module conflict, that would help me add a workaround for this edge case. Otherwise it should be solvable in null-ls config only. |
Thanks for your response. I'm aware of general consensus that null-ls / none-ls are brittle and it's better to migrate to combination of conform / nvim-lint but didn't have time to migrate myself yet. I will either try to pinpoint the root cause or migrate. |
I would like to add that this is something that started happening with the new |
Regardless, I've pushed a change to the |
I don't see a branch with that name in GitHub? Maybe I'm mistaken |
Looks like I had pushed it to my Forgejo mirror by accident, whoops. Now available under https://github.com/NotAShelf/nvf/tree/null-ls-sources |
Would anyone be able to update me on whether the |
I gave it go and it seems to be working although with some hiccups. My config looks like this
When opening gitcommit buffer I get an error message:
But null-ls seems to be working, at least partially. I get diagnostics messages and
So it at least detects builtin gitlint source. Not sure what is the reason for error message on start and By the way, I took your advice and migrate my own setup from null-ls to a combination of |
Description
I am trying to migrate my existing lua based config to NVF and seemingly can't get null-ls / none-ls to work when configuring it via NVF.
👟 Reproduction steps
Setup null-ls this way
👀 Expected behavior
Null-ls gitlint source is detected and attached when editing git commit message.
😓 Actual Behavior
When nvim is launched from git to edit commit message
:NullLsInfo
returnsand gitlint warnings are not surfaced via LSP. Also
:NullLsLog
is empty.💻 Metadata
"x86_64-linux"
- host os:Linux 6.14.0-zen1, NixOS, 25.05 (Warbler), 25.05.20250406.da98c5d
- multi-user?:yes
- sandbox:yes
- version:nix-env (Nix) 2.26.3
- channels(root):"nixos-21.03pre260389.ac02f26980f"
- nixpkgs:/nix/store/dda1fgi0jrqh3aj4rhbmmf6svimk5ybc-source
📝 Relevant log output
The text was updated successfully, but these errors were encountered: