mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 18:24:35 +02:00
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:
parent
195978e627
commit
d8f3113e90
4 changed files with 130 additions and 162 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue