summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/eshell-vterm-config.el16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules/eshell-vterm-config.el b/modules/eshell-vterm-config.el
index c882e06fd..f43f945d9 100644
--- a/modules/eshell-vterm-config.el
+++ b/modules/eshell-vterm-config.el
@@ -151,6 +151,22 @@
(lambda ()
(define-key eshell-mode-map (kbd "C-r") 'cj/eshell-history-search)))
+;; Better completion for eshell
+(use-package pcmpl-args
+ :after eshell)
+
+;; Company mode integration for eshell
+(use-package company-shell
+ :after (eshell company)
+ :config
+ (add-to-list 'company-backends 'company-shell)
+ (add-hook 'eshell-mode-hook
+ (lambda ()
+ (setq-local company-minimum-prefix-length 2)
+ (setq-local company-idle-delay 2)
+ (company-mode 1))))
+
+
;; ------------------------------ Vterm ------------------------------
;; faster and highly dependable, but not extensible