all repos — nixfiles @ d3779759662e190b9ce7ccbd4620b956984e2b07

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

TabNine: move basic editor setup to tabnine module

Alan Pearce
commit

d3779759662e190b9ce7ccbd4620b956984e2b07

parent

83ff6d74036e287497bf987f336ca800b101ed0b

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

changed files
M user/modules/tabnine.nixuser/modules/tabnine.nix
@@ -72,5 +72,22 @@ };
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"))) + ''; }; }