Skip to content

Commit

Permalink
add: complete only when buffer modified
Browse files Browse the repository at this point in the history
(credit to @nasyxx)
  • Loading branch information
zerolfx committed Jun 1, 2022
1 parent a0c486b commit 165c62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion copilot.el
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ For Copilot, COL is always 0. USER-POS is the cursor position (for verification
:type 'list
:group 'copilot)

(defcustom copilot-enable-predicates '(evil-insert-state-p)
(defcustom copilot-enable-predicates '(evil-insert-state-p buffer-modified-p)
"A list of predicate functions with no argument to enable Copilot. Copilot will be enabled only if all predicates return t."
:type 'list
:group 'copilot)
Expand Down

0 comments on commit 165c62f

Please sign in to comment.