diff options
author | Alan Pearce | 2024-12-12 22:16:52 +0100 |
---|---|---|
committer | Alan Pearce | 2024-12-12 22:16:52 +0100 |
commit | 1d1492faf63e7c5f0101bcb66cd769feb737c60d (patch) | |
tree | 47be209ac2acdeb63342920577f9b40003876174 /user/settings | |
parent | 64b978c3caecdb236765ac1636ba6d1864c8ebee (diff) | |
download | nixfiles-1d1492faf63e7c5f0101bcb66cd769feb737c60d.tar.lz nixfiles-1d1492faf63e7c5f0101bcb66cd769feb737c60d.tar.zst nixfiles-1d1492faf63e7c5f0101bcb66cd769feb737c60d.zip |
emacs: use patch to set path to tabnine exe
Diffstat (limited to 'user/settings')
-rw-r--r-- | user/settings/emacs.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index db3a29fa..73a3b55a 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -185,6 +185,12 @@ in lsp-mode = self.melpaPackages.lsp-mode.overrideAttrs { LSP_USE_PLISTS = "true"; # must be set in early-init }; + tabnine = self.melpaPackages.tabnine.overrideAttrs (attrs: { + postPatch = (attrs.postPatch or "") + '' + substituteInPlace tabnine-core.el \ + --replace '(tabnine--executable-path)' '"${pkgs.tabnine}/bin/TabNine"' + ''; + }); }; extraConfig = '' (with-eval-after-load 'editorconfig |