From 95c7b2a3b431ca71500091f8f249fda2f6a00d84 Mon Sep 17 00:00:00 2001 From: Aaron Ji Date: Fri, 26 Apr 2024 13:12:54 +0800 Subject: [PATCH] remove vterm deps #11 --- tabnine-core.el | 10 ++++++++-- tabnine.el | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/tabnine-core.el b/tabnine-core.el index b418934..934aa25 100644 --- a/tabnine-core.el +++ b/tabnine-core.el @@ -39,6 +39,14 @@ (require 'url) (require 'tabnine-util) + +;; +;; Externals +;; + +(declare-function vterm-delete-region "ext:vterm.el") +(declare-function vterm-insert "ext:vterm.el") + ;; ;; Constants ;; @@ -917,8 +925,6 @@ Use TRANSFORM-FN to transform completion if provided." (point-max)))) (if (eq major-mode 'vterm-mode) (progn - (cl-eval-when (compile) - (require 'vterm)) (vterm-delete-region start end) (vterm-insert t-completion))) ;; maybe should not delete this line diff --git a/tabnine.el b/tabnine.el index e532584..d8e5555 100644 --- a/tabnine.el +++ b/tabnine.el @@ -7,7 +7,7 @@ ;; John Gong ;; ;; Version: 0.0.3 -;; Package-Requires: ((emacs "27.1") (dash "2.16.0") (s "1.12.0") (editorconfig "0.9.1") (vterm "0.0.2") (language-id "0.5.1") (transient "0.4.0")) +;; Package-Requires: ((emacs "27.1") (dash "2.16.0") (s "1.12.0") (editorconfig "0.9.1") (language-id "0.5.1") (transient "0.4.0")) ;; Keywords: convenience ;; URL: https://github.com/shuxiao9058/tabnine/