plugins: do not import helpers.nix directly

This commit is contained in:
Gaetan Lepage 2024-02-09 14:31:04 +01:00 committed by Gaétan Lepage
parent 9f3bbca7f1
commit 7dbf7f978c
13 changed files with 83 additions and 119 deletions

View file

@ -12,10 +12,10 @@
pkgs,
config,
lib,
helpers,
...
} @ args:
}:
with lib; let
helpers = import ../helpers.nix args;
cfg = config.plugins.none-ls.sources.${sourceType}.${name};
# does this evaluate package?
packageOption =

View file

@ -5,7 +5,7 @@
...
}:
with lib; let
helpers = import ./helpers.nix;
cmpHelpers = import ./helpers.nix;
serverData = {
code_actions = {
eslint = {
@ -228,7 +228,7 @@ with lib; let
dataFlattened = flatten serverDataFormatted;
in {
imports =
(map helpers.mkServer dataFlattened)
(map cmpHelpers.mkServer dataFlattened)
++ [
./prettier.nix
# Introduced January 22 2024.