all repos — nixfiles @ 6db9eaad8e78f882ae44a28edcc4d11d2ffd5e28

System and user configuration, managed by nix and home-manager

Re-format with nixpkgs-fmt

Alan Pearce
commit

6db9eaad8e78f882ae44a28edcc4d11d2ffd5e28

parent

fa2d41901d9fd10fd257c7ccc249ab29c5df2e33

1 file changed, 19 insertions(+), 19 deletions(-)

changed files
M user/modules/tabnine.nixuser/modules/tabnine.nix
@@ -1,26 +1,26 @@
-{ - config, - lib, - pkgs, - ... +{ config +, lib +, pkgs +, ... }: with lib; let inherit (pkgs) stdenv; cfg = config.programs.tabnine; lspConfigFile = config: pkgs.runCommand "TabNine.toml" - { - buildInputs = [pkgs.remarshal]; - preferLocalBuild = true; - allowSubstitutes = false; - } - '' - remarshal -if json -of toml \ - < ${pkgs.writeText "config.json" (builtins.toJSON cfg.lspConfig)} \ - | sed -e 's/^\["\(.*\)"\]/[\1]/' \ - > $out - ''; -in { + { + buildInputs = [ pkgs.remarshal ]; + preferLocalBuild = true; + allowSubstitutes = false; + } + '' + remarshal -if json -of toml \ + < ${pkgs.writeText "config.json" (builtins.toJSON cfg.lspConfig)} \ + | sed -e 's/^\["\(.*\)"\]/[\1]/' \ + > $out + ''; +in +{ options.programs.tabnine = { enable = mkEnableOption "TabNine, Smart Compose for code.";
@@ -37,7 +37,7 @@ };
config = mkOption { type = types.attrs; - default = {}; + default = { }; description = '' TabNine configuration written to <filename>\${configDir}/tabnine_config.json</filename>
@@ -53,7 +53,7 @@ };
lspConfig = mkOption { type = types.attrs; - default = {}; + default = { }; description = '' LSP Server configuration written to <filename>\${configDir}/TabNine.toml</filename>