plugins/none-ls: refactor using mkSourcePlugin

Introduce `_mk-source-plugin.nix`, which returns a module handling a
specific none-ls source plugin.

This wasn't possible previously due to IFD conflicting with evaluating
module imports.

Adjusted the test to use the `options` provided via module args, and
cleaned up some stuff allowing "unpackaged" sources to not be listed
again in the test file.
This commit is contained in:
Matt Sturgeon 2024-07-11 19:07:54 +01:00
parent 195978e627
commit d8f3113e90
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
4 changed files with 130 additions and 162 deletions

View file

@ -53,10 +53,6 @@ let
inherit pkgs lib helpers;
config = { };
};
nonels-sources-options = import ../plugins/none-ls/servers.nix {
inherit pkgs lib helpers;
config = { };
};
};
inherit namespace;
}