fix several broken options

This commit is contained in:
Pedro Alves 2023-01-19 16:02:40 +00:00
parent 5b0e3623a0
commit 11da3bfbc1
4 changed files with 10 additions and 12 deletions

View file

@ -1,8 +1,8 @@
{ pkgs, config, lib, inputs, ... }@args:
{ pkgs, config, lib, ... }@args:
let
helpers = import ./helpers.nix args;
serverData = {
code_actions = {
code_actions = {
gitsigns = { };
};
completion = { };
@ -30,9 +30,6 @@ let
black = {
package = pkgs.python3Packages.black;
};
beautysh = {
package = inputs.beautysh.packages.${pkgs.system}.beautysh-python38;
};
fourmolu = {
package = pkgs.haskellPackages.fourmolu;
};
@ -57,9 +54,10 @@ in
{
imports = lib.lists.map (helpers.mkServer) dataFlattened;
config = let
cfg = config.plugins.null-ls;
in
config =
let
cfg = config.plugins.null-ls;
in
lib.mkIf cfg.enable {
plugins.gitsigns.enable = lib.mkIf (cfg.sources.code_actions.gitsigns.enable) true;
};