Skip to content

Commit

Permalink
Merge pull request #384 from alanpearce/leave-company-backends-for-us…
Browse files Browse the repository at this point in the history
…er-setup
  • Loading branch information
josteink committed Mar 27, 2021
2 parents 2a3ac4f + e1e751d commit ad6fa78
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tide.el
Expand Up @@ -139,6 +139,11 @@ errors and tide-project-errors buffer."
:type 'boolean
:group 'tide)

(defcustom tide-completion-setup-company-backend t
"Add `company-tide' to `company-backends'."
:type 'boolean
:group 'tide)

(defcustom tide-completion-ignore-case nil
"CASE will be ignored in completion if set to non-nil."
:type 'boolean
Expand Down Expand Up @@ -1788,7 +1793,8 @@ This function is used for the basic completions sorting."
name)))))

(with-eval-after-load 'company
(cl-pushnew 'company-tide company-backends))
(when tide-completion-setup-company-backend
(cl-pushnew 'company-tide company-backends)))

;;; References

Expand Down

0 comments on commit ad6fa78

Please sign in to comment.