all repos — nixfiles @ 581d41b82efbd534eba36a7906078361ee6d3f85

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

tabnine: add crude management of tabnine installation and config

Alan Pearce
commit

581d41b82efbd534eba36a7906078361ee6d3f85

parent

8d9f5216c8cf2a89488a9fa303e0a71557a6fdc4

1 file changed, 12 insertions(+), 0 deletions(-)

changed files
M user/modules/tabnine.nixuser/modules/tabnine.nix
@@ -32,6 +32,15 @@ Location of TabNine configuration directory relative to \$HOME
''; }; + config = mkOption { + type = types.attrs; + default = { }; + description = '' + TabNine configuration written to + <filename>\${configDir}/tabnine_config.json</filename> + ''; + }; + lspConfig = mkOption { type = types.attrs; default = {};
@@ -46,6 +55,9 @@
config = mkIf cfg.enable { home.file."${cfg.configDir}/TabNine.toml" = { source = lspConfigFile cfg.lspConfig; + }; + home.file."${cfg.configDir}/tabnine_config.json" = { + source = pkgs.writeText "tabnine_config.json" (builtins.toJSON cfg.config); }; }; }