tools/lookup: lazy load dash-docs
This commit is contained in:
parent
bf8ee34c19
commit
8e394ba3f0
2 changed files with 5 additions and 3 deletions
|
@ -65,9 +65,10 @@ Docsets must be installed with one of the following commands:
|
|||
+ `dash-docs-async-install-docset-from-file'
|
||||
|
||||
Docsets can be searched directly via `+lookup/in-docsets'."
|
||||
(when (require 'dash-docs nil t)
|
||||
(when-let (docsets (cl-remove-if-not #'dash-docs-docset-path (dash-docs-buffer-local-docsets)))
|
||||
(+lookup/in-docsets nil identifier docsets)
|
||||
'deferred))
|
||||
'deferred)))
|
||||
|
||||
|
||||
;;
|
||||
|
|
|
@ -132,6 +132,7 @@ this list.")
|
|||
|
||||
(use-package! dash-docs
|
||||
:when (featurep! +docsets)
|
||||
:defer t
|
||||
:init
|
||||
(add-hook '+lookup-documentation-functions #'+lookup-dash-docsets-backend-fn)
|
||||
:config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue