branch: externals/ellama
commit 1c4aa12bf9cbae13f6742115475fe1cfbdd569a4
Author: Sergey Kostyaev <[email protected]>
Commit: Sergey Kostyaev <[email protected]>

    make spinner type customizable
---
 ellama.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ellama.el b/ellama.el
index 83f572f743..2d00fcd845 100644
--- a/ellama.el
+++ b/ellama.el
@@ -86,6 +86,10 @@
   :group 'ellama
   :type '(sexp :validate 'cl-struct-p))
 
+(defcustom ellama-spinner-type 'progress-bar "Spinner type for ellama."
+  :group 'ellama
+  :type 'symbol)
+
 (defvar-local ellama-context nil "Context that contains ellama conversation 
memory.")
 
 (defvar-local ellama--unprocessed-data nil)
@@ -242,7 +246,7 @@ default. Default value is `ellama-template'."
                   (json-encode-plist ellama--request))
         :filter 'ellama--filter
         :sentinel sentinel)
-       (spinner-start 'progress-bar)))))
+       (spinner-start ellama-spinner-type)))))
 
 ;;;###autoload
 (defun ellama-ask ()

Reply via email to