File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change 67
67
This should be a function that takes a name in a registry as an argument."
68
68
:type 'function )
69
69
70
+ (defcustom nix3-registry-list-completion-options
71
+ (list :add-to-registry t
72
+ :require-match nil
73
+ :no-exact t )
74
+ " Plist of options for completion in `nix3-registry-list' command.
75
+
76
+ These options are passed as arguments to `nix3-registry-complete' ."
77
+ :type 'plist )
78
+
70
79
(defface nix3-registry-type-face
71
80
'((t :inherit font-lock-type-face ))
72
81
" "
@@ -246,10 +255,8 @@ registry type and the \"to\" value of the entry."
246
255
(defun nix3-registry-list ()
247
256
" Display a list of entries in the flake registries."
248
257
(interactive )
249
- (let ((name (nix3-registry-complete " Flake: "
250
- :add-to-registry t
251
- :require-match nil
252
- :no-exact t )))
258
+ (let ((name (apply #'nix3-registry-complete " Flake: "
259
+ nix3-registry-list-completion-options)))
253
260
(message " Selected a registry entry %s " name)
254
261
(funcall nix3-registry-list-action name)))
255
262
You can’t perform that action at this time.
0 commit comments