term/eshell: integrate company + pcomplete

This commit is contained in:
Henrik Lissner 2019-10-22 03:55:13 -04:00
parent bf46a197a0
commit 422c61a02a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 73 additions and 2 deletions

View file

@ -151,7 +151,15 @@ You should use `set-eshell-alias!' to change this.")
[remap doom/backward-to-bol-or-indent] #'eshell-bol
[remap doom/backward-kill-to-bol-and-indent] #'eshell-kill-input
[remap evil-window-split] #'+eshell/split-below
[remap evil-window-vsplit] #'+eshell/split-right))))
[remap evil-window-vsplit] #'+eshell/split-right)))
(add-hook! 'eshell-mode-hook
(defun +eshell-init-company-h ()
(when (featurep! :completion company)
(company-mode +1)
(setq-local company-backends '(company-pcomplete))
(setq-local company-frontends (cons 'company-tng-frontend company-frontends))
(when (bound-and-true-p evil-local-mode)
(evil-normalize-keymaps))))))
(use-package! eshell-up