Closed pwnalone closed 5 months ago
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
you need to setup null-ls before mason-null-ls
I'm currently using the first method (primary source of truth is
mason-null-ls
) for automatic setup, but it does not seem to work when using the order specified in the README.Running
:NullLsInfo
shows that there is no attached language server. Getting rid of the config function entirely seems to fix the issue, but then the setup fornull-ls
is not executed, so I don't have access to the functions it exposes (e.g.:NullLsInfo
). Requiringnull-ls
first inside the config function doesn't fix the issue, but, strangely enough, adding anopts = {}
entry to the dependency specification fornull-ls
gets it to work.From my understanding of
lazy.nvim
, this means thatnull-ls
will be setup beforemason-null-ls
, which is the opposite of what the README says is needed when usingmason-null-ls
as the source of truth. I'm confused though why this method worked, but swapping the order of the require-statements inside the config function did not.I'm new to Lua, so I don't yet know how everything works, but I'm concerned that this could be a race condition between the setup of
null-ls
andmason-null-ls
and that I'm only observing it when the setup routines for both modules are executed closely together in the config function.Thank you for your time, and please let me know what is the correct way to enable automatic setup using
mason-null-ls
as the source of truth.