feat(selectrum): Add +selectrum/search-symbol-at-point

This commit is contained in:
Edmund Miller 2021-02-19 20:48:34 -06:00 committed by Itai Y. Efrat
parent 5216ba411f
commit dfce5ddb17
2 changed files with 8 additions and 1 deletions

View file

@ -67,3 +67,8 @@ in the search."
If ARG (universal argument), include all files, even hidden or compressed ones."
(interactive "P")
(+selectrum/project-search arg initial-query default-directory))
;;;###autoload
(defun +selectrum/search-symbol-at-point ()
(interactive)
(consult-line (thing-at-point 'symbol)))

View file

@ -702,7 +702,9 @@
:desc "Search other project" "P" #'+default/search-other-project
:desc "Jump to mark" "r" #'evil-show-marks
:desc "Search buffer" "s" #'+default/search-buffer
:desc "Search buffer for thing at point" "S" #'swiper-isearch-thing-at-point
:desc "Search buffer for thing at point" "S"
(cond ((featurep! :completion ivy) #'swiper-isearch-thing-at-point)
((featurep! :completion selectrum) #'+selectrum/search-symbol-at-point))
:desc "Dictionary" "t" #'+lookup/dictionary-definition
:desc "Thesaurus" "T" #'+lookup/synonyms)