tabnine: add crude management of tabnine installation and config
1 file changed, 12 insertions(+), 0 deletions(-)
changed files
M user/modules/tabnine.nix → user/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); }; }; }