diff options
Diffstat (limited to 'user/modules')
-rw-r--r-- | user/modules/tabnine.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/user/modules/tabnine.nix b/user/modules/tabnine.nix index 7e38e0ec..e4b80ad9 100644 --- a/user/modules/tabnine.nix +++ b/user/modules/tabnine.nix @@ -72,5 +72,22 @@ in home.file."${cfg.configDir}/registration_key" = { text = cfg.registrationKey; }; + + programs.neovim.plugins = [ + pkgs.vimPlugins.coc-tabnine + ]; + programs.neovim.coc.settings = { + "tabnine.binary_path" = "${pkgs.tabnine}/bin/TabNine"; + }; + + programs.emacs.extraPackages = epkgs: [ + epkgs.company-tabnine + ]; + programs.emacs.extraConfig = '' + (with-eval-after-load 'company-tabnine + (advice-add 'company-tabnine--executable-path :around + (lambda (original-function &rest args) + "${pkgs.tabnine}/bin/TabNine"))) + ''; }; } |