feat(nix): add generic completing-read support to +nix/lookup-option
This commit is contained in:
parent
a8dabe1aec
commit
1ed1064ce1
1 changed files with 7 additions and 2 deletions
|
@ -42,8 +42,13 @@
|
||||||
:initial-input initial-input
|
:initial-input initial-input
|
||||||
:action #'+nix--options-action
|
:action #'+nix--options-action
|
||||||
:caller '+nix/options))
|
:caller '+nix/options))
|
||||||
;; TODO Add general `completing-read' support
|
((+nix--options-action (cdr
|
||||||
((user-error "No search engine is enabled. Enable helm or ivy!")))
|
(assoc
|
||||||
|
(completing-read "NixOs options: "
|
||||||
|
nixos-options
|
||||||
|
nil
|
||||||
|
t
|
||||||
|
initial-input) nixos-options)))))
|
||||||
;; Tell lookup module to let us handle things from here
|
;; Tell lookup module to let us handle things from here
|
||||||
'deferred)
|
'deferred)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue