mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
feat(nix): add generic completing-read support to +nix/lookup-option
This commit is contained in:
@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user