diff --git a/modules/completion/siren-copilot.el b/modules/completion/siren-copilot.el index 6228c46..85fd1c6 100644 --- a/modules/completion/siren-copilot.el +++ b/modules/completion/siren-copilot.el @@ -36,13 +36,15 @@ :preface (defun siren-copilot-disable-predicate () - (when buffer-file-name + (if buffer-file-name (let* ((full buffer-file-name) (base (file-name-nondirectory full)) (dir (file-name-directory full))) (or (string-prefix-p ".env" base) (string-match-p "\/\.ansible\/tmp\/ansible-local-.+$" dir) - (string-suffix-p ".kube/config" full))))) + (string-suffix-p ".kube/config" full))) + (let ((name (buffer-name))) + (or (string-prefix-p "*temp*" name))))) (defun siren-copilot-dwim () "Trigger or accept completion."