diff options
Diffstat (limited to 'user/settings')
-rw-r--r-- | user/settings/emacs.nix | 4 | ||||
-rw-r--r-- | user/settings/neovim.nix | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index ceeff4b7..6d0f7e1c 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -161,6 +161,10 @@ in extraConfig = '' (with-eval-after-load 'editorconfig (setq editorconfig-exec-path "${pkgs.editorconfig-core-c}/bin/editorconfig")) + (with-eval-after-load 'company-tabnine + (advice-add 'company-tabnine--executable-path :around + (lambda (original-function &rest args) + "${pkgs.tabnine}/bin/TabNine"))) '' + lib.optionalString stdenv.isDarwin '' (with-eval-after-load 'files (setq insert-directory-program "${pkgs.coreutils-prefixed}/bin/gls")) diff --git a/user/settings/neovim.nix b/user/settings/neovim.nix index ceae1f62..e238b916 100644 --- a/user/settings/neovim.nix +++ b/user/settings/neovim.nix @@ -24,6 +24,9 @@ "suggest.enablePreview" = true; "coc.preferences.formatOnSaveFiletypes" = [ "nix" ]; "nil.formatting.command" = "nixpkgs-fmt"; + tabnine = { + binary_path = "${pkgs.tabnine}/bin/TabNine"; + }; semantictokens = { filetypes = [ "nix" ]; }; |