company: remove evil-collection-company-use-tng flag

This commit is contained in:
condy 2021-07-08 02:45:39 +08:00
parent d97e0ff4af
commit e6f25ebe48
2 changed files with 0 additions and 17 deletions

View File

@ -36,17 +36,6 @@
"Evil bindings for `company-mode'."
:group 'evil-collection)
(defcustom evil-collection-company-use-tng t
"Enable company-tng through `company-tng-configure-default'.
This mirrors ycmd's behavior for a completion experience more
similar to YouCompleteMe.
Note that for changes to take effect, this variable may have to
be set through custom or before evil-collection loads."
:group 'evil-collection-company
:type 'boolean)
(defcustom evil-collection-company-supported-states '(insert replace emacs)
"The `evil-state's which `company' function can be requested."
:type '(repeat symbol))
@ -90,11 +79,6 @@ be set through custom or before evil-collection loads."
(kbd "M-k") 'company-select-previous
(kbd "<escape>") 'company-search-abort)
;; Sets up YCMD like behavior.
(when evil-collection-company-use-tng
(require 'company-tng)
(company-tng-mode +1))
;; Make `company-mode' not show popup when not in supported state
(advice-add 'company-call-backend
:before-while 'evil-collection-company-supported-p))

View File

@ -94,7 +94,6 @@ more.
| Variable | Default | Description |
|--------------------------------------------+---------+-------------------------------------------------------------------|
| evil-collection-company-use-tng | t | Set up autocompletion to be similar to Vim's YouCompleteMe. |
| evil-collection-calendar-want-org-bindings | nil | Set up Org functions in calendar keymap. |
| evil-collection-outline-bind-tab-p | nil | Enable <tab>-based bindings in Outline mode. |
| evil-collection-term-sync-state-and-mode-p | t | Synchronize insert/normal state with char/line-mode in term-mode. |