From 581d41b82efbd534eba36a7906078361ee6d3f85 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 9 Dec 2019 17:27:14 +0100 Subject: tabnine: add crude management of tabnine installation and config --- user/modules/tabnine.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'user/modules') diff --git a/user/modules/tabnine.nix b/user/modules/tabnine.nix index 7a207fa2..c2b9a746 100644 --- a/user/modules/tabnine.nix +++ b/user/modules/tabnine.nix @@ -32,6 +32,15 @@ in ''; }; + config = mkOption { + type = types.attrs; + default = { }; + description = '' + TabNine configuration written to + \${configDir}/tabnine_config.json + ''; + }; + lspConfig = mkOption { type = types.attrs; default = {}; @@ -47,5 +56,8 @@ in 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); + }; }; } -- cgit 1.4.1