mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
fix(completion/copilot): improve copilot's interaction with company-mode
Previously we only hide company-mode's in-line preview when there was only a single result. This meant that it didn't show the one result anywhere. This allows company-mode to still show it's regular popup even when there's only one result.
This commit is contained in:
@@ -22,7 +22,12 @@
|
||||
|
||||
:config
|
||||
(with-eval-after-load 'company
|
||||
(delq 'company-preview-if-just-one-frontend company-frontends)))
|
||||
;; Use company popup even when there's only one result
|
||||
(delq 'company-preview-if-just-one-frontend company-frontends)
|
||||
(setf (nth (position 'company-pseudo-tooltip-unless-just-one-frontend
|
||||
company-frontends)
|
||||
company-frontends)
|
||||
'company-pseudo-tooltip-frontend)))
|
||||
|
||||
(provide 'siren-copilot)
|
||||
;;; siren-copilot.el ends here
|
||||
|
||||
Reference in New Issue
Block a user