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
|
||||
:action #'+nix--options-action
|
||||
:caller '+nix/options))
|
||||
;; TODO Add general `completing-read' support
|
||||
((user-error "No search engine is enabled. Enable helm or ivy!")))
|
||||
((+nix--options-action (cdr
|
||||
(assoc
|
||||
(completing-read "NixOs options: "
|
||||
nixos-options
|
||||
nil
|
||||
t
|
||||
initial-input) nixos-options)))))
|
||||
;; Tell lookup module to let us handle things from here
|
||||
'deferred)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue