Add value+docstring columns to doom/help-custom-variable

When used with ivy. Also: slight refactor of doom/help-custom-variable.
This commit is contained in:
Henrik Lissner 2021-01-05 19:28:09 -05:00
parent b89929f3f8
commit 34c5dad750
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 3 deletions

View file

@ -235,6 +235,10 @@ results buffer.")
(setq counsel-describe-function-function #'helpful-callable
counsel-describe-variable-function #'helpful-variable)
;; Decorate `doom/help-custom-variable' results the same way as
;; `counsel-describe-variable' (adds value and docstring columns).
(ivy-configure 'doom/help-custom-variable :parent 'counsel-describe-variable)
;; Record in jumplist when opening files via counsel-{ag,rg,pt,git-grep}
(add-hook 'counsel-grep-post-action-hook #'better-jumper-set-jump)
(add-hook 'counsel-grep-post-action-hook #'recenter)