Eshell completion. Not sure if this actually does anything.
This commit is contained in:
parent
0f9babf110
commit
fc106093e7
@ -728,6 +728,20 @@ Return nil if DIR is not in a hugo project at all."
|
|||||||
;; (company-fuzzy-history-backends '(company-yasnippet))
|
;; (company-fuzzy-history-backends '(company-yasnippet))
|
||||||
;; (company-fuzzy-trigger-symbols '("." "->" "<" "\"" "'" "@"))
|
;; (company-fuzzy-trigger-symbols '("." "->" "<" "\"" "'" "@"))
|
||||||
;; (company-fuzzy-passthrough-backends '(company-capf)))
|
;; (company-fuzzy-passthrough-backends '(company-capf)))
|
||||||
|
(use-package bash-completion
|
||||||
|
:after eshell
|
||||||
|
:config
|
||||||
|
(defun bash-completion-from-eshell ()
|
||||||
|
(interactive)
|
||||||
|
(let ((completion-at-point-functions '(bash-completion-eshell-capf)))
|
||||||
|
(completion-at-point)))
|
||||||
|
(defun bash-completion-eshell-capf ()
|
||||||
|
(bash-completion-dynamic-complete-nocomint
|
||||||
|
(save-excursion (eshell-bol) (point)) (point) t))
|
||||||
|
:general (general-define-key
|
||||||
|
:states 'insert
|
||||||
|
:maps 'eshell-mode-map
|
||||||
|
"TAB" 'bash-completion-from-eshell))
|
||||||
(use-package corfu
|
(use-package corfu
|
||||||
:custom
|
:custom
|
||||||
(completion-cycle-threshold 3)
|
(completion-cycle-threshold 3)
|
||||||
|
Loading…
Reference in New Issue
Block a user