Skip to content

Commit

Permalink
feat(copilot): disable copilot-mode in *scratch* buffers
Browse files Browse the repository at this point in the history
  • Loading branch information
jimeh committed Aug 10, 2024
1 parent 590c0be commit c5f6383
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/completion/siren-copilot.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
(string-match-p "\/\.ansible\/tmp\/ansible-local-.+$" dir)
(string-suffix-p ".kube/config" full)))
(let ((name (buffer-name)))
(or (string-prefix-p "*temp*" name)))))
(or (string-prefix-p "*temp*" name)
(string-match-p "*scratch*" name)))))

(defun siren-copilot-dwim ()
"Trigger or accept completion."
Expand Down

0 comments on commit c5f6383

Please sign in to comment.