diff options
Diffstat (limited to 'user/modules')
-rw-r--r-- | user/modules/tabnine.nix | 12 |
1 files changed, 12 insertions, 0 deletions
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 + <filename>\${configDir}/tabnine_config.json</filename> + ''; + }; + 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); + }; }; } |